Question: Following Lab 5, write a program that asks the user for the name of a .png file and print the number of pixels that are
Following Lab 5, write a program that asks the user for the name of a .png file and print the number of pixels that are nearly white (the fraction of red, the fraction of green, and the fraction of blue are all above 0.8).
For example, if your file was of the snow pack in the Sierra Nevada mountains in California in February 2014:
then a sample run would be:
Enter file name: caDrought2014.png Snow count is 38010
Note: for this program, you only need to compute the snow count. Showing the image will confuse the grading script, since it's only expecting the snow count
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
