DLNormalize Class Reference

Normalize an image. More...

#include <DLNormalize.h>

List of all members.

Static Public Member Functions

static DLImage dlNormalizeImage (const DLImage &in)


Detailed Description

Normalize an image.

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.


Member Function Documentation

static DLImage DLNormalize::dlNormalizeImage ( const DLImage in  )  [static]

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);
Parameters:
in const DLImage &
Returns:
DLImage of normalized image


The documentation for this class was generated from the following file:

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007