How to adjust contrast of a figure with 3 subplots simultaneously?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Antworten (1)
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!