How can I automatically set the colormap (e.g. caxis auto) using the function implay?

7 ビュー (過去 30 日間)
Thomas
Thomas 2014 年 11 月 25 日
回答済み: Thomas 2014 年 12 月 16 日
I am using the function implay to look at image data with multiple timeframes, and I would like to specify the min and max values of the colormap programmatically. Using imshow for individual images I just apply auto, but this doesn't seem to work with implay. Any suggestions?

採用された回答

Thomas
Thomas 2014 年 12 月 16 日
I figured this out:
function [] = implay_AutoColorMap(image)
handle = implay(image);
handle.Visual.ColorMap.UserRange = 1; handle.Visual.ColorMap.UserRangeMin = min(image(:)); handle.Visual.ColorMap.UserRangeMax = max(image(:));
Hope this saves someone else some time... Thanks to those who figured it out and shared!

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by