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 comentario

Walter Roberson
Walter Roberson el 11 de Ag. de 2011
duplicate is at http://www.mathworks.com/matlabcentral/answers/13292-extract-imadjust-values

Iniciar sesión para comentar.

Respuestas (2)

Andreas Goser
Andreas Goser el 11 de Ag. de 2011

0 votos

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 comentarios

Jason
Jason el 11 de Ag. de 2011
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 el 11 de Ag. de 2011
Jason, please do not open multiple questions on the same topic.
Jason
Jason el 17 de Ag. de 2011
Sorry Walter!
Jason

Iniciar sesión para comentar.

Image Analyst
Image Analyst el 11 de Ag. de 2011

0 votos

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

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Preguntada:

el 11 de Ag. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by