#include "tlVision.h"
Go to the source code of this file.
Functions | |
int | tl_rgb2hsi (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_rgb2hsi (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_rgb2yuv (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_rgb2yuv (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_rgb2nrg (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_rgb2nrg (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_rgb2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_rgb2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_rgb2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest) |
int | tl_rgb2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_hsi2rgb (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_hsi2rgb (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_hsi2yuv (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_hsi2yuv (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_hsi2nrg (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_hsi2nrg (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_hsi2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_hsi2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_hsi2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest) |
int | tl_hsi2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_yuv2rgb (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_yuv2rgb (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_yuv2hsi (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_yuv2hsi (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_yuv2nrg (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_yuv2nrg (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_yuv2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_yuv2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_yuv2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest) |
int | tl_yuv2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_nrg2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_nrg2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_nrg2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest) |
int | tl_nrg2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_gray2rgb (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_gray2rgb (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_gray2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest) |
int | tl_gray2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_hrgray2gray (tlHRPixel *src, int width, int height, tlRect *rect, tlPixel *dest, unsigned char shift=0) |
int | tl_hrgray2gray (tlHRPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest, unsigned char shift=0) |
int | tl_hrgray2bin (tlHRPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest) |
int | tl_hrgray2bin (tlHRPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_to_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int tl_gray2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
GRAY to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_BIN_WIDTH, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, tl_gray2bin(), TL_GRAY_WIDTH, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_gray2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
GRAY to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_gray2bin().
Referenced by tl_gray2bin(), and tlPixelArray::toBin().
int tl_gray2rgb | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
GRAY to RGB format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, tl_gray2rgb(), TL_GRAY_WIDTH, TL_MAX, TL_MIN, TL_PIXEL, TL_RGB_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
GRAY to RGB format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_gray2rgb().
Referenced by tl_gray2rgb(), and tlPixelArray::toRgb().
int tl_hrgray2bin | ( | tlHRPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HRGRAY to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, tl_hrgray2bin(), TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_hrgray2bin | ( | tlHRPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
GRAY to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_hrgray2bin().
Referenced by tl_hrgray2bin(), and tlPixelArray::toBin().
int tl_hrgray2gray | ( | tlHRPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest, | |||
unsigned char | shift | |||
) |
HRGRAY to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image | |
shift | [default=0] amount of right shift (read "divisions by 2") to perform on each pixel to cast high-res image into single-byte image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, tl_hrgray2gray(), TL_MAX, TL_MIN, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_hrgray2gray | ( | tlHRPixel * | src, | |
int | width, | |||
int | height, | |||
tlRect * | rect, | |||
tlPixel * | dest, | |||
unsigned char | shift | |||
) |
HRGRAY to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image | |
shift | [default=0] amount of right shift (read "divisions by 2") to perform on each pixel to cast high-res image into single-byte image |
References tl_hrgray2gray().
Referenced by tl_hrgray2gray(), and tlPixelArray::toGray().
int tl_hsi2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HSI to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_BIN_WIDTH, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, tl_hsi2bin(), TL_HSI_WIDTH, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_hsi2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HSI to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_hsi2bin().
Referenced by tl_hsi2bin(), and tlPixelArray::toBin().
int tl_hsi2gray | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HSI to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, tl_hsi2gray(), TL_HSI_WIDTH, TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
HSI to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_hsi2gray().
Referenced by tl_hsi2gray(), and tlPixelArray::toGray().
int tl_hsi2nrg | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HSI to NRG format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_hsi2nrg(), tl_hsi2rgb(), and tl_rgb2nrg().
HSI to NRG format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_hsi2nrg().
Referenced by tl_hsi2nrg(), and tlPixelArray::toNrg().
int tl_hsi2rgb | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HSI to RGB format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, tl_hsi2rgb(), TL_HSI_WIDTH, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_PI, TL_PIXEL, TL_RGB_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
HSI to RGB format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_hsi2rgb().
Referenced by tl_hsi2nrg(), tl_hsi2rgb(), tl_hsi2yuv(), and tlPixelArray::toRgb().
int tl_hsi2yuv | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HSI to YUV format conversion
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_create_array(), tl_hsi2rgb(), tl_hsi2yuv(), tl_rgb2yuv(), and TL_RGB_WIDTH.
HSI to YUV format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_hsi2yuv().
Referenced by tl_hsi2yuv(), and tlPixelArray::toYuv().
int tl_nrg2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
NRG to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_BIN_WIDTH, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, tl_nrg2bin(), TL_NRG_WIDTH, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_nrg2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
NRG to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_nrg2bin().
Referenced by tl_nrg2bin(), and tlPixelArray::toBin().
int tl_nrg2gray | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
NRG to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, TL_MAX, TL_MIN, tl_nrg2gray(), TL_NRG_WIDTH, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
NRG to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_nrg2gray().
Referenced by tl_nrg2gray(), and tlPixelArray::toGray().
int tl_rgb2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
RGB to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_BIN_WIDTH, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_PIXEL, tl_rgb2bin(), TL_RGB_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_rgb2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
RGB to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_rgb2bin().
Referenced by tl_rgb2bin(), and tlPixelArray::toBin().
int tl_rgb2gray | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
RGB to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, TL_MAX, TL_MIN, TL_PIXEL, tl_rgb2gray(), TL_RGB_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
RGB to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_rgb2gray().
Referenced by tl_rgb2gray(), and tlPixelArray::toGray().
int tl_rgb2hsi | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
RGB to HSI format conversion
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_HSI_WIDTH, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_PI, TL_PIXEL, tl_rgb2hsi(), TL_RGB_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
RGB to HSI format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_rgb2hsi().
Referenced by tl_rgb2hsi(), tl_yuv2hsi(), and tlPixelArray::toHsi().
int tl_rgb2nrg | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
RGB to NRG format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | binary conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_NRG_WIDTH, TL_PIXEL, tl_rgb2nrg(), TL_RGB_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
RGB to NRG format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_rgb2nrg().
Referenced by tl_hsi2nrg(), tl_rgb2nrg(), and tlPixelArray::toNrg().
int tl_rgb2yuv | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
RGB to YUV format conversion
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, tl_rgb2yuv(), TL_RGB_WIDTH, TL_YUV_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
RGB to YUV format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_rgb2yuv().
Referenced by tl_hsi2yuv(), tl_rgb2yuv(), and tlPixelArray::toYuv().
int tl_to_channel | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
int | channel, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
Extract a channel from an image. The result is placed in a pixel array.
src | pixel array containing source image | |
width | image width | |
height | image height | |
pixel_width | bytes per pixel | |
channel | channel to extract | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_MAX, TL_MIN, TL_NO_ERROR, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_yuv2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
YUV to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_BIN_WIDTH, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MIN, tl_yuv2bin(), TL_YUV_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
int tl_yuv2bin | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | min, | |||
int | max, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
YUV to BIN format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
min | lower binary threshold [0..255] | |
max | upper binary threshold [0..255] | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_yuv2bin().
Referenced by tl_yuv2bin(), and tlPixelArray::toBin().
int tl_yuv2gray | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
YUV to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, TL_MAX, TL_MIN, tl_yuv2gray(), TL_YUV_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
YUV to GRAY format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_yuv2gray().
Referenced by tl_yuv2gray(), and tlPixelArray::toGray().
int tl_yuv2hsi | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
YUV to HSI format conversion
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_create_array(), tl_rgb2hsi(), TL_RGB_WIDTH, tl_yuv2hsi(), and tl_yuv2rgb().
YUV to HSI format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_yuv2hsi().
Referenced by tl_yuv2hsi(), and tlPixelArray::toHsi().
int tl_yuv2nrg | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
YUV to NRG format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_NRG_WIDTH, tl_yuv2nrg(), TL_YUV_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
YUV to NRG format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_yuv2nrg().
Referenced by tl_yuv2nrg(), and tlPixelArray::toNrg().
int tl_yuv2rgb | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
HSI to RGB format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_RGB_WIDTH, tl_yuv2rgb(), TL_YUV_WIDTH, tlSize::width, tlLocation::x, and tlLocation::y.
YUV to RGB format conversion.
src | pixel array containing image to convert | |
width | image width | |
height | image height | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
References tl_yuv2rgb().
Referenced by tl_yuv2hsi(), tl_yuv2rgb(), and tlPixelArray::toRgb().