TLIB documentation
 

tlMorph.h File Reference


Detailed Description

Internal morphological routines.

#include "tlVision.h"

Include dependency graph for tlMorph.h:

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

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)


Function Documentation

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.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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().

int tl_dilate_bin ( tlPixel src,
int  width,
int  height,
int  size,
tlRect rect,
tlPixel dest 
)

Perform morphological dilatation on a BIN pixel array using a square pattern as an dilatating shape.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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().

int tl_erode_bin ( tlPixel src,
int  width,
int  height,
int  size,
tlRect rect,
tlPixel dest 
)

Perform morphological erosion on a BIN pixel array using a square pattern as an eroding shape.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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().

int tl_erode_gray ( tlPixel src,
int  width,
int  height,
int  size,
tlRect rect,
tlPixel dest 
)

Perform morphological erosion on a GRAY pixel array using a square pattern as an eroding shape.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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().

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

Perform skeletonization on a BIN pixel array.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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.

Parameters:
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
Returns:
0 on success, -1 otherwise.
See error management for details.

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().



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