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

21 ビュー (過去 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 件のコメント
Victor Fletcher
Victor Fletcher 2018 年 11 月 26 日
Ahh it worked, I have the min and maximum gray levels.
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