I would like to know the minimum and maximum intensity level in a grayscale picture? How do I find this?
13 views (last 30 days)
Show older comments
Victor Fletcher
on 24 Nov 2018
Commented: Image Analyst
on 26 Nov 2018
I have used imfinfo and I have figured out the size of the image (256x256)
I would now like to know the intensity levels of each of the pixels.
In particular what is the highest and lowest value of the intensity levels.
0 Comments
Accepted Answer
Image Analyst
on 24 Nov 2018
Edited: Image Analyst
on 24 Nov 2018
Try this:
impixelinfo; % Let's you mouse around and see gray levels. Or you could use impixel().
% Extrac min and max from the image array
minGrayLevel = min(grayImage(:));
maxGrayLevel = max(grayImage(:));
4 Comments
Image Analyst
on 26 Nov 2018
You have to have an image displayed for impixelinfo to work. It's instant, doesn't take 30 minutes. It will show you the results in a status bar in the lower left of your GUI if you mouse around above the image.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!