#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 } |