Products & Services Industries Academia Support User Community Company

Learn more about Image Processing Toolbox   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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