Untitled
unknown
plain_text
5 months ago
342 B
4
Indexable
I = imread('cameraman.tif'); I = double(I);minI = min(I(:)); maxI = max(I(:)); newMin = 0; newMax = 1550; J = (I - minI) * ((newMax - newMin) / (maxI - minI)) + newMin; J = uint8(J); figure; subplot(1, 2, 1), imshow(uint8(I)), title('Original Image'); subplot(1, 2, 2), imshow(J), title('Contrast Stretched Image');
Editor is loading...
Leave a Comment