decorrstretch - Apply decorrelation stretch to multichannel image

Syntax

S = decorrstretch(I)
S = decorrstretch(I, TOL)

Description

S = decorrstretch(I) applies a decorrelation stretch to a multichannel image I and returns the result in S. S has the same size and class as I. The mean and variance in each band are the same as in I.

S = decorrstretch(I, TOL) applies a contrast following the decorrelation stretch. The contrast stretch is controlled by TOL:

Class Support

The input image must be of class uint8, uint16, int16, single, or double.

Examples

[X, map] = imread('forest.tif');
S = decorrstretch(ind2rgb(X, map),'tol',0.01);
figure, imshow(X,map)
figure, imshow(S)

See Also

imadjust, stretchlim

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS