Question: Part 1: Converting an image to Black and White and Greyscale In order to convert a color image to Black and White, you need to

Part 1: Converting an image to Black and White and Greyscale In order to convert a color image to Black and White, you need to calculate the average of the RGB values. If the average is closer to 255, the pixel is set to white (255), otherwise to black (0). For conversion to a greyscale image, the pixel values are set to the averages of the RGB values in principle. Do some research to determine how the RGB file format stores colour values if you are not familiar with it yet. Using the Python IDLE and the skeleton code provided, add code to the starter code that converts a color image to a greyscale image. In order to receive marks for this lab, you need to work with the pixel values using the code provided. The use of functions from packages that achieve the conversion will receive a mark of 0. Submit your greyscale image only for this part (separate file) and also your documented source code for Part 1 (.py file)

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!