TLIB documentation
 

tlNormalize.h File Reference


Detailed Description

Internal normalization routines.

#include "tlVision.h"

Include dependency graph for tlNormalize.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int tl_normalize_gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest)
int tl_normalize_gray (tlPixel *src, int width, int height, tlMask *mask, tlRect *rect, tlPixel *dest)


Function Documentation

int tl_normalize_gray ( tlPixel src,
int  width,
int  height,
tlMask mask,
tlRect rect,
tlPixel dest 
)

Normalize a GRAY picture so that it uses to full range as defined by TL_MIN_PIXEL_VAL and TL_MAX_PIXEL_VAL. The normlization is limited to the masked area.

Parameters:
src the pixel array to normalize
width image width
height image height
mask data mask
rect portion of the image to process
dest [out] destination pixel array
Returns:
0 on success, -1 otherwise.
See error management for details.
Note:
src and dest can be pointing to the same pixel array. When normalizing a subimage, the normalization occurs in the subimage ONLY (the rest of the image is ignored); therefore, the same area of an image can render differently if normalized within the whole image or a subimage.

int tl_normalize_gray ( tlPixel src,
int  width,
int  height,
tlRect rect,
tlPixel dest 
)

Normalize a GRAY picture so that it uses to full range as defined by TL_MIN_PIXEL_VAL and TL_MAX_PIXEL_VAL.

Parameters:
src the pixel array to normalize
width image width
height image height
rect portion of the image to process
dest [out] destination pixel array
Returns:
0 on success, -1 otherwise.
See error management for details.
Note:
src and dest can be pointing to the same pixel array. When normalizing a subimage, the normalization occurs in the subimage ONLY (the rest of the image is ignored); therefore, the same area of an image can render differently if normalized within the whole image or a subimage.



TLIB documentation - generated on 7 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.