#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
| HxImageRep L_HXIMAGEREP | HxContrastStretch (HxImageRep img, double mFactor) |
| Contrast stretching. More... | |
|
||||||||||||
|
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 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001