#include "tlVision.h"
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) |
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.
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 |
References tlSize::height, tlPixelArray::pixel, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, tl_normalize_gray(), TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Normalize a GRAY picture so that it uses to full range as defined by TL_MIN_PIXEL_VAL and TL_MAX_PIXEL_VAL.
src | the pixel array to normalize | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] destination pixel array |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, tl_normalize_gray(), TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlImage::normalize(), and tl_normalize_gray().