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.

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.

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.

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.

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.

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.

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.

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.



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