Find max value on images

3 views (last 30 days)
Mohamed Elbeialy
Mohamed Elbeialy on 20 Apr 2021
Commented: Image Analyst on 21 Apr 2021
How to find the max value of those punch of images

Answers (1)

Image Analyst
Image Analyst on 20 Apr 2021
What is a "punch" of images? And what is your definition of brightest for a color image? Do you just want to convert to gray scale and find the brightest? Something like (untested)
grayImage = rgb2gray(rgbImage);
maxValue = max(grayImage(:))
maxMap = grayImage == maxValue;
rgb2 = imoverlay(grayImage, maxMap);
imshow(rgb2);
  11 Comments
Image Analyst
Image Analyst on 21 Apr 2021
@Mohamed Elbeialy, I'll take a look at that when/if I get time. But did this answer solve this problem? If so, please accept it.

Sign in to comment.

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!