Matlab Imge Subplot
Subplot
%% Adjust Contrast using Adaptive Histogram Equalization
% This example shows how to adjust the contrast in an image using adaptive
% histogram equalization (CLAHE). Compared to the |histeq| function, which
% operates on an entire image, |adapthisteq| operates on small regions of
% the image.
%%
% Read image into the workspace.
I = imread('pout.tif');
%%
% Adust the contrast of the image using the |adapthisteq| function.
J = adapthisteq(I);
%%
% Display the contrast-adjusted image with its histogram.
figure
subplot(1,2,1)
imshow(J)
subplot(1,2,2)
imhist(J,64)
%% Adjust Contrast using Adaptive Histogram Equalization
% This example shows how to adjust the contrast in an image using adaptive
% histogram equalization (CLAHE). Compared to the |histeq| function, which
% operates on an entire image, |adapthisteq| operates on small regions of
% the image.
%%
% Read image into the workspace.
I = imread('pout.tif');
%%
% Adust the contrast of the image using the |adapthisteq| function.
J = adapthisteq(I);
%%
% Display the contrast-adjusted image with its histogram.
figure
subplot(1,2,1)
imshow(J)
subplot(1,2,2)
imhist(J,64)
Comments
Post a Comment