Extract Imadjust values?

18 ビュー (過去 30 日間)
Jason
Jason 2011 年 8 月 8 日
I am using Imadjust to auto adjust a grayscale tiff image.
J = imadjust(Im,stretchlim(Im),[0 1]);
Is it possible to set another image (on a seperate GUI axes) with the same scaling that is being used. I was assuming I would need to extract the scaling values somehow but could find how to.
Thanks

採用された回答

Image Analyst
Image Analyst 2011 年 8 月 11 日
Just get the min and max value of your new array J
minJValue = min(J(:));
maxJValue = max(J(:));
imshow(yourOtherImage, [minJValue maxJValue]);
See the FAQ for ideas on sharing variables between functions: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by