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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started