TLIB documentation
#include "tlVision.h"


Go to the source code of this file.
Functions | |
| int | tl_filter_rgb (tlPixel *src, int width, int height, tlPixel r_min, tlPixel r_max, tlPixel g_min, tlPixel g_max, tlPixel b_min, tlPixel b_max, tlRect *rect, tlPixel *dest, tlPixel *mask=NULL) |
| int | tl_filter_hsi (tlPixel *src, int width, int height, tlPixel h1_min, tlPixel h1_max, tlPixel h2_min, tlPixel h2_max, tlPixel s_min, tlPixel s_max, tlPixel i_min, tlPixel i_max, tlRect *rect, tlPixel *dest, tlPixel *mask=NULL) |
| int | tl_filter_nrg (tlPixel *src, int width, int height, tlPixel nr_min, tlPixel nr_max, tlPixel ng_min, tlPixel ng_max, tlRect *rect, tlPixel *dest, tlPixel *mask=NULL) |
| int | tl_filter_gray (tlPixel *src, int width, int height, tlPixel intensity_min, tlPixel intensity_max, tlRect *rect, tlPixel *dest, tlPixel *mask=NULL) |
| int | tl_filter_hrgray (tlHRPixel *src, int width, int height, tlHRPixel intensity_min, tlHRPixel intensity_max, tlRect *rect, tlHRPixel *dest, tlPixel *mask=NULL) |
| int | tl_extract_color_rgb (tlPixel *src, int width, int height, tlColor *minColor, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_min_rgb (tlPixel *src, int width, int height, tlColor *minColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_max_rgb (tlPixel *src, int width, int height, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_yuv (tlPixel *src, int width, int height, tlColor *minColor, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_min_yuv (tlPixel *src, int width, int height, tlColor *minColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_max_yuv (tlPixel *src, int width, int height, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_hsi (tlPixel *src, int width, int height, tlColor *minColor, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_min_hsi (tlPixel *src, int width, int height, tlColor *minColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_max_hsi (tlPixel *src, int width, int height, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_nrg (tlPixel *src, int width, int height, tlColor *minColor, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_min_nrg (tlPixel *src, int width, int height, tlColor *minColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_max_nrg (tlPixel *src, int width, int height, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_gray (tlPixel *src, int width, int height, tlColor *minColor, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_min_gray (tlPixel *src, int width, int height, tlColor *minColor, tlRect *rect, tlPixel *mask=NULL) |
| int | tl_extract_color_max_gray (tlPixel *src, int width, int height, tlColor *maxColor, tlRect *rect, tlPixel *mask=NULL) |
| int tl_extract_color_gray | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the color boundaries of a portion of an GRAY image; color boundaries take the same format as the input image.
| src | GRAY pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| maxColor | [out] upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_hsi | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the color boundaries of a portion of an HSI image; color boundaries take the same format as the input image.
| src | HSI pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| maxColor | [out] upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_max_gray | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the upper color boundary of a portion of an GRAY image; color boundaries take the same format as the input image.
| src | GRAY pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| maxColor | upper color boundary | |
| rect | portion of the image to process | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_max_hsi | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the upper color boundary of a portion of an HSI image; color boundaries take the same format as the input image.
| src | HSI pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| maxColor | [out] upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_max_nrg | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the upper color boundary of a portion of an NRG image; color boundaries take the same format as the input image.
| src | NRG pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| maxColor | [out] upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_max_rgb | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the upper color boundary of a portion of an RGB image; color boundaries take the same format as the input image.
| src | RGB pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| maxColor | upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_max_yuv | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the upper color boundary of a portion of an YUV image; color boundaries take the same format as the input image.
| src | YUV pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| maxColor | upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_min_gray | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the lower color boundary of a portion of an GRAY image; color boundaries take the same format as the input image.
| src | GRAY pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_min_hsi | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the lower color boundary of a portion of an HSI image; color boundaries take the same format as the input image.
| src | HSI pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_min_nrg | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the lower color boundary of a portion of an NRG image; color boundaries take the same format as the input image.
| src | NRG pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] minColor lower color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_min_rgb | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the lower color boundary of a portion of an RGB image; color boundaries take the same format as the input image.
| src | RGB pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_min_yuv | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the lower color boundary of a portion of an YUV image; color boundaries take the same format as the input image.
| src | YUV pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_nrg | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the color boundaries of a portion of an NRG image; color boundaries take the same format as the input image.
| src | NRG pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| maxColor | [out] upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_rgb | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the color boundaries of a portion of an RGB image; color boundaries take the same format as the input image.
| src | RGB pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| maxColor | [out] upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_extract_color_yuv | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlColor * | minColor, | |||
| tlColor * | maxColor, | |||
| tlRect * | rect, | |||
| tlPixel * | mask | |||
| ) |
Extract the color boundaries of a portion of an YUV image; color boundaries take the same format as the input image.
| src | YUV pixel array to be processed | |
| width | input image width | |
| height | input image height | |
| rect | portion of the image to process | |
| minColor | [out] lower color boundary | |
| maxColor | [out] upper color boundary | |
| mask | binary mask that indicates which pixels to take into account |
| int tl_filter_gray | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlPixel | intensity_min, | |||
| tlPixel | intensity_max, | |||
| tlRect * | rect, | |||
| tlPixel * | dest, | |||
| tlPixel * | mask | |||
| ) |
Filter a GRAY image using two color boundaries.
| src | GRAY pixel array to be filtered | |
| width | image width | |
| height | image height | |
| intensity_min | lower channel boundaries [0..255] | |
| intensity_max | upper channel boundaries [0..255] | |
| rect | portion of the image to process | |
| mask | mask for the given area (must be same size as image size) | |
| dest | [out] filtered pixel array |
| int tl_filter_hrgray | ( | tlHRPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlHRPixel | intensity_min, | |||
| tlHRPixel | intensity_max, | |||
| tlRect * | rect, | |||
| tlHRPixel * | dest, | |||
| tlPixel * | mask | |||
| ) |
Filter a HRGRAY image using two color boundaries.
| src | GRAY pixel array to be filtered | |
| width | image width | |
| height | image height | |
| intensity_min | lower channel boundaries [0..255] | |
| intensity_max | upper channel boundaries [0..255] | |
| rect | portion of the image to process | |
| mask | mask for the given area (must be same size as image size) | |
| dest | [out] filtered pixel array |
| int tl_filter_hsi | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlPixel | h1_min, | |||
| tlPixel | h1_max, | |||
| tlPixel | h2_min, | |||
| tlPixel | h2_max, | |||
| tlPixel | s_min, | |||
| tlPixel | s_max, | |||
| tlPixel | i_min, | |||
| tlPixel | i_max, | |||
| tlRect * | rect, | |||
| tlPixel * | dest, | |||
| tlPixel * | mask | |||
| ) |
Filter an HSI image using two color boundaries.
| src | HSI pixel array to be filtered | |
| width | image width | |
| height | image height | |
| h1_min | lower channel boundaries [0..255] | |
| h1_max | upper channel boundaries [0..255] | |
| h2_min | lower channel boundaries [0..255] | |
| h2_max | upper channel boundaries [0..255] | |
| s_min | lower channel boundaries [0..255] | |
| s_max | upper channel boundaries [0..255] | |
| i_min | lower channel boundaries [0..255] | |
| i_max | upper channel boundaries [0..255] | |
| rect | portion of the image to process | |
| mask | mask for the given area (must be same size as image size) | |
| dest | [out] filtered pixel array |
| int tl_filter_nrg | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlPixel | nr_min, | |||
| tlPixel | nr_max, | |||
| tlPixel | ng_min, | |||
| tlPixel | ng_max, | |||
| tlRect * | rect, | |||
| tlPixel * | dest, | |||
| tlPixel * | mask | |||
| ) |
Filter an NRG image using two color boundaries.
src NRG pixel array to be filtered nr_min lower channel boundaries [0..255] nr_max upper channel boundaries [0..255] ng_min lower channel boundaries [0..255] ng_max upper channel boundaries [0..255] rect portion of the image to process mask mask for the given area (must be same size as image size) dest [out] filtered pixel array
| int tl_filter_rgb | ( | tlPixel * | src, | |
| int | width, | |||
| int | height, | |||
| tlPixel | r_min, | |||
| tlPixel | r_max, | |||
| tlPixel | g_min, | |||
| tlPixel | g_max, | |||
| tlPixel | b_min, | |||
| tlPixel | b_max, | |||
| tlRect * | rect, | |||
| tlPixel * | dest, | |||
| tlPixel * | mask | |||
| ) |
Filter an RGB image using two color boundaries.
| src | RGB pixel array to be filtered | |
| width | image width | |
| height | image height | |
| r_min | lower channel boundaries [0..255] | |
| r_max | upper channel boundaries [0..255] | |
| g_min | lower channel boundaries [0..255] | |
| g_max | upper channel boundaries [0..255] | |
| b_min | lower channel boundaries [0..255] | |
| b_max | upper channel boundaries [0..255] | |
| rect | portion of the image to process | |
| mask | mask for the given area (must be same size as image size) | |
| dest | [out] filtered pixel array |