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.
0 件のコメント
採用された回答
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
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!