Adjusting intensity values of specific area
2 views (last 30 days)
Show older comments
Greetings!
Being relatively new to Image Processing, I am stuck on how to proceed with a current quandary of mine.

As you can see, near the center of the image I've got two unwelcome areas of lower intensity. I need to find a way to bring them back to normal, to restore them to the same intensity as their surroundings.
Any answers would be greatly appreciated!
0 Comments
Answers (1)
Image Analyst
on 20 Jul 2014
You can convert to HSV colorspace using rgb2hsv() and then call adapthisteq() on the v channel, then go back to RGB with hsv2rgb().
rbImage = imread(filename);
hsv = rgb2hsv(rgbImage);
newv = adapthisteq(v,...............
hsv(:,:,3) = newv;
rgbImageNew = hsv2rgb(hsv);
imshow(rgbImageNew);
Or you can search the web for the algorithm that Adobe uses for their "shadows and highlights" filter, which also does a very good job.
0 Comments
See Also
Categories
Find more on Display Image in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!