#include "tlVision.h"
Go to the source code of this file.
Functions | |
int | tl_thin (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest) |
int | tl_thin_hitandmiss (tlPixel *src, int width, int height, tlPixel *kernel, tlRect *rect, tlPixel *dest) |
int | tl_erode_all (tlPixel *src, int width, int height, int pixel_width, int size, tlRect *rect, tlPixel *dest) |
int | tl_erode_gray (tlPixel *src, int width, int height, int size, tlRect *rect, tlPixel *dest) |
int | tl_erode_bin (tlPixel *src, int width, int height, int size, tlRect *rect, tlPixel *dest) |
int | tl_dilate_all (tlPixel *src, int width, int height, int pixel_width, int size, tlRect *rect, tlPixel *dest) |
int | tl_dilate_gray (tlPixel *src, int width, int height, int size, tlRect *rect, tlPixel *dest) |
int | tl_dilate_bin (tlPixel *src, int width, int height, int size, tlRect *rect, tlPixel *dest) |
int tl_dilate_all | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
int | size, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
Perform morphological dilatation on all channels of a pixel array using a square pattern as an dilatating shape.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | pixel width | |
size | size of the square mask to use | |
rect | portion of the image to dilate | |
dest | [out] destination array |
References tlSize::height, tl_dilate_all(), TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_CHANNEL, TL_MIN, TL_MIN_PIXEL_VAL, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::dilate(), and tl_dilate_all().
Perform morphological dilatation on a BIN pixel array using a square pattern as an dilatating shape.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
size | size of the square mask to use | |
rect | portion of the image to dilate | |
dest | [out] destination array |
References tlSize::height, tl_dilate_bin(), TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::dilate(), and tl_dilate_bin().
int tl_dilate_gray | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | size, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
Perform morphological dilatation on a GRAYpixel array using a square pattern as an dilatating shape.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
size | size of the square mask to use | |
rect | portion of the image to dilate | |
dest | [out] destination array |
References tlSize::height, tl_dilate_gray(), TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, TL_MAX, TL_MIN, TL_MIN_PIXEL_VAL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::dilate(), and tl_dilate_gray().
int tl_erode_all | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
int | size, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
Perform morphological erosion on each channel of a pixel array using a square pattern as an eroding shape.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | pixel width | |
size | size of the square mask to use | |
rect | portion of the image to erode | |
dest | [out] destination array |
References tlSize::height, tl_erode_all(), TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_CHANNEL, TL_MAX_PIXEL_VAL, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::erode(), and tl_erode_all().
Perform morphological erosion on a BIN pixel array using a square pattern as an eroding shape.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
size | size of the square mask to use | |
rect | portion of the image to erode | |
dest | [out] destination array |
References tlSize::height, tl_erode_bin(), TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::erode(), and tl_erode_bin().
Perform morphological erosion on a GRAY pixel array using a square pattern as an eroding shape.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
size | size of the square mask to use | |
rect | portion of the image to erode | |
dest | [out] destination array |
References tlSize::height, tl_erode_gray(), TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_GRAY_WIDTH, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::erode(), and tl_erode_gray().
Perform skeletonization on a BIN pixel array.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
rect | portion of the image to dilate | |
dest | [out] destination array |
References tl_thin(), and tl_thin_hitandmiss().
Referenced by tlPixelArray::thin(), and tl_thin().
int tl_thin_hitandmiss | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
tlPixel * | kernel, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) | [inline] |
Perform morphological thinning on a BIN pixel array.
src | pixel array (of the appropriate format) | |
width | image width [pix] | |
height | image height [pix] | |
kernel | thinning kernel | |
rect | portion of the image to dilate | |
dest | [out] destination array |
References tlSize::height, TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MIN, tl_thin_hitandmiss(), tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tl_thin(), and tl_thin_hitandmiss().