How to adjust contrast of a figure with 3 subplots simultaneously?

1 回表示 (過去 30 日間)
YZ
YZ 2014 年 10 月 27 日
回答済み: Image Analyst 2014 年 10 月 27 日
I used the following codes to generate a figure with 3 subplots:
h = figure;
subplot(1, 3, 1); imagesc(dicom_data(:,:,1)); title('1st Image'); axis image off; colormap gray;
subplot(1, 3, 2); imagesc(dicom_data(:,:,2)); title('2nd Image'); axis image off; colormap gray;
subplot(1, 3, 3); imagesc(dicom_data(:,:,3)); title('3rd Image'); axis image off; colormap gray;
imcontrast(h);
But Adjust Contrast tool can only adjust the contrast of the 3rd image. Is there a way to adjust the contrast of all 3 images simultaneously (so that 3 images have the same contrast level) and interactively? Thank you.

回答 (1 件)

Image Analyst
Image Analyst 2014 年 10 月 27 日
You can use imadjust() to adjust it from code. I've never done it interactively like you seem to indicate you are doing. If you can, I'd guess you can just do it on one image at a time.

カテゴリ

Help Center および File ExchangeExplore and Edit Images with Image Viewer App についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by