Apply decorrelation stretch to multichannel image
S = imdecorrstretch(I, tol, useCorr)
Input image
The fraction of the image to saturate at low and high intensities. If tol is an scalar, high intensity is 1 - tol.
1 to use correlation method, 0 to use covariance method.
Stretched output image
The primary purpose of decorrelation stretch is visual enhancement. Decorrelation stretching is a way to enhance the color differences in an image.
S = imread(fullpath(getIPCVpath() + "/images/" + 'baboon.png')); S2 = imdecorrstretch(S); subplot(121);imshow(S); subplot(122);imshow(S2); | ![]() | ![]() |