imshow(I, [low high]

The help manual shows how to scale a (grayscale) image using low and high
imshow(I, [low high]
It doesn't tell you how to extract the values that have been used. Is this possible to take a current image and obtain the low and high values?
thanks Jason

댓글 수: 1

Walter Roberson
Walter Roberson 2011년 8월 11일
duplicate is at http://www.mathworks.com/matlabcentral/answers/13292-extract-imadjust-values

댓글을 달려면 로그인하십시오.

답변 (2개)

Andreas Goser
Andreas Goser 2011년 8월 11일

0 개 추천

The choice of the LOW and HIGH parameters is depending on your application. The lowest and highest values of your picture (you could obtain with MIN and MAX commands) may not the most useful parameters.

댓글 수: 3

Jason
Jason 2011년 8월 11일
I actually use this:
J = imadjust(IM,stretchlim(IM),[0 1]);
imshow(J);
Then I have a second image that I want to be scaled to the same values and so want to extract the scaling from the 1st image.
Walter Roberson
Walter Roberson 2011년 8월 11일
Jason, please do not open multiple questions on the same topic.
Jason
Jason 2011년 8월 17일
Sorry Walter!
Jason

댓글을 달려면 로그인하십시오.

Image Analyst
Image Analyst 2011년 8월 11일

0 개 추천

Jason, you don't have to know. Simply do it this way:
imshow(imageArray, []);
and it will do it for you.

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2011년 8월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by