Question: GRAY IMAGE CONVERSION, IMAGE SUBTRACTION, IMAGE THRESHOLD AIM: Write a PYTHON code that reads an image and do the operations that gray scale conversion, image

 GRAY IMAGE CONVERSION, IMAGE SUBTRACTION, IMAGE THRESHOLD AIM: Write a PYTHON

GRAY IMAGE CONVERSION, IMAGE SUBTRACTION, IMAGE THRESHOLD AIM: Write a PYTHON code that reads an image and do the operations that gray scale conversion, image subtraction and image threshold. HARDWARE AND SOFTWARE REQUIREMENTS: . PC/LAPTOP WINDOWS 7/10/XP etc., PYTHON COMMUNITY VERSION GOOGLE COLAB . PROCEDURE: Write a PYTHON code that will do the following 1. Read any color image. 2. Display that image. 3. Convert the input image into grayscale. 4. Subtract a Blue Channel from the converted gray scale image and display the image. 5. Subtract a Red Channel from the converted gray scale image and display the image. 6. Subtract a Green Channel from the converted gray scale image and display the image. 7. Set any threshold value for the above subtracted images using cv2.THRESH_BINARY function and display the image. Your output has to be a bit like the one given below (Just an example) Grayscale Blue Subtracted Green Subtracted Threshold image Result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!