Question: Problem 4 : Image Inversion Filename: invertImage.m Sample image: CloudyGoldenGate _ grayscale.jpg ( downarrow ) Additional image files above. Write a script

Problem 4: Image Inversion
Filename:
invertImage.m
Sample image: CloudyGoldenGate_grayscale.jpg \(\downarrow \)
Additional image files above.
Write a script
For the image exercises, you can test with any grayscale image that imread is capable of accepting. Please make sure the image truly is stored as 8-bit grayscale otherwise you will encounter significantly larger and more complex data sets.
Write a program that will invert the negative/positive of grayscale image.
The program should input a grayscale bitmap image (the golden grate bridge file is a good example) and perform mathematical analysis on the image matrix data, inverting the negative/positive of the grayscale image. In other words, what was white should be black. What was black should be white. Everything in the middle should proportionally invert. For example, light black should become dark black.
After the conversion, the new, modified image should be output using imshow.
 Problem 4: Image Inversion Filename: invertImage.m Sample image: CloudyGoldenGate_grayscale.jpg \(\downarrow \)

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 Programming Questions!