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

1 Ansicht (letzte 30 Tage)
YZ
YZ am 27 Okt. 2014
Beantwortet: Image Analyst am 27 Okt. 2014
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.

Antworten (1)

Image Analyst
Image Analyst am 27 Okt. 2014
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.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by