gusucode.com > 精通Matlab数字图像处理与识别源码程序 > 精通Matlab数字图像处理与识别源码程序/chapter3/code/ex3_2.m
I = imread('pout.tif'); %读入原图像 % Gamma取0.75 subplot(1,3,1); imshow(imadjust(I, [ ], [ ], 0.75)); title('Gamma 0.75'); % Gamma取1 subplot(1,3,2); imshow(imadjust(I, [ ], [ ], 1)); title('Gamma 1'); % Gamma取1.5 subplot(1,3,3); imshow(imadjust(I, [ ], [ ], 1.5)); title('Gamma 1.5'); figure; % Gamma取0.75 subplot(1,3,1); imhist(imadjust(I, [ ], [ ], 0.75)); title('Gamma 0.75'); % Gamma取1 subplot(1,3,2); imhist(imadjust(I, [ ], [ ], 1)); title('Gamma 1'); % Gamma取1.5 subplot(1,3,3); imhist(imadjust(I, [ ], [ ], 1.5)); title('Gamma 1.5');