Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxContrastStretch.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxContrastStretch (HxImageRep img, double mFactor)
 Contrast stretching. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxContrastStretch HxImageRep    img,
double    mFactor
 

Contrast stretching.

Computes mFactor * ((I - Imin) / (Imax - Imin)) with Imin and Imax the minimum and maximum value present in image I.

00019 {
00020     HxScalarDouble min = HxPixMin(img);
00021     HxScalarDouble max = HxPixMax(img);
00022     return HxMulVal(HxSubVal(img, min), mFactor / (max - min));
00023 }


Generated on Tue Jan 8 13:59:19 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001