#include <DLNormalize.h>
Static Public Member Functions | |
static DLImage | dlNormalizeImage (const DLImage &in) |
The algorithm is implemented as a static function, so no object of class DLNormalize needs to be instantiated. See below for a usage example.
Definition at line 16 of file DLNormalize.h.
Normalize the pixels of an image based on maximum and minimum of its pixel values. In a grayscale image, the minimum pixel value will be set to 0 and the maximum pixel value will be reset to 255 and the intermediate values will be scaled accordingly. For a color image, this process will be applied to each of the red, green and blue channels, separately. The following code example will return the normalized image for test.tif:
DLImage i ("test.tif"); DLImage normalizedImage = DLNormalize::dlNormalizeImage(i);
in | const DLImage & |