Page 267 - AI Ver 1.0 Class 10
P. 267
Take a look at your folder. You will see the above two image files created.
Task
If [0,0,0] creates black box and [255,255,255] creates white box then,
Try out the following commands and answer the given questions.
1. [0,0,255] will create which colour box?
2. [0,255,0] will now create which colour box?
Also try different combination ranging from 0 to 255 in the above to find out different colours for
the ROI.
Task
1. Open a picture of your favourite fruit and display it in Jupyter notebook.
2. Crop the picture and save it with a new name on the computer.
Understanding Convolution Operator
You must have filters downloaded in your smartphones that help you hide your one big pimple that suddenly
appeared on your chin and spoiled your look or make your cheeks blusher and your lip colour of the same shade
to enhance your looks just before you upload your picture on social websites like Facebook, Instagram, Twitter,
Snapchat and many others.
These filters that help you improve the image quality or edit the pixel values in Photoshop are actually changing
the pixel values evenly throughout the image with the help of convolution and the convolution operator.
Before we understand the process of convolution let us recall that an image is made up of pixels and these pixels
are arranged in a 2D matrix to form a digital image. Each pixel has a value that ranges from 0 to 255 which gives
a specific color to these pixels.
Computer Vision 265

