I would like to know the minimum and maximum intensity level in a grayscale picture? How do I find this?

15 次查看(过去 30 天)
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.

采纳的回答

Image Analyst
Image Analyst 2018-11-24
编辑:Image Analyst 2018-11-24
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 个评论
Image Analyst
Image Analyst 2018-11-26
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.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by