How to adjust contrast of a figure with 3 subplots simultaneously?
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Image Analyst
on 27 Oct 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 Comments
See Also
Categories
Find more on Explore and Edit Images with Image Viewer App in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!