对于分布在[0 1]的灰度图像, If "I" was your image, try Inew = imadjust(I, stretchlim(I), []); imshow(I), figure, imshow(Inew) 对于任意图像, imshow(I,[min(I(:)) max(I(:))])