Write a MATLAB program to read in a JPEG file, make the following transformation
ID: 3651761 • Letter: W
Question
Write a MATLAB program to read in a JPEG file, make the following transformations, and then display the result.1. Determine the top 25% of the brightest pixels, and make each one 20% brighter and 5% redder.
2. Determine the bottom 25% of the darkest pixels, and make each one 20% darker.
3. Place a blue square, size 100 by 100 pixels , in the center of the image.
Brightness is the maximum value of the three color values. Changing the brightness of a pixel by a certain percentage means changing all three color values by that percentage. Note that the minimum value for a color encoding is 0 and the maximum is 255.
I am sooo confused, I really need help and this explained please
Explanation / Answer
The challenge in this assignment is to analyze the values for each pixel and determine the top 25% brightest and darkest pixels.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.