Question: Write a MATLAB function capable of reducing the number of grey levels in an image. The desired number of grey levels needs to be a
Write a MATLAB function capable of reducing the number of grey levels in an image. The desired number of grey levels needs to be a variable input to your program and must be an integer power of 2 (and less than 256). Write a "driver" program to read in the image "Megeve_512 times 512_256.jpg", and show the effect on this image of reducing the number of grey levels from 256 to 128. 64. 32. 16. 8. 4 and 2. Zooming and Shrinking Images by Pixel Replication Write a MATLAB function capable of zooming and shrinking an image just by pixel replication. Assume that the desired zoom/shrink factors are integers. You may ignore aliasing effects. You will need to read in "Megeve_512 times 512_256.jpg". Use your program to shrink the image "Megeve_512 times 512_256.jpg" in (a) from 512 times 512 to 128 ' 128 pixels. Use your program to zoom the image in (b) back to 512 ' 512. Explain the reasons for the differences between the original image and the image that has been shrunk and then expanded back to the original size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
