...

/

Blurring and Grayscaling and Image

Blurring and Grayscaling and Image

Learn how to convert an image into grayscale and blur it for processing.

Two important functions in image processing are blurring and grayscaling. Many image processing operations take place on grayscale (black and white) images, as they are simpler to process.

Similarly, blurring is also useful for edge detection, as we’ll see in later examples.

Converting an image to grayscale

The first argument is the image as shown in line 8 ...