TLIB documentation
 

tlEdges.h File Reference


Detailed Description

Internal edges operators.

#include "tlVision.h"

Include dependency graph for tlEdges.h:

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

Go to the source code of this file.

Defines

#define TL_EDGES_BIN   0
#define TL_EDGES_MORPH   1
#define TL_EDGES_SOBEL   2
#define TL_EDGES_PREWITT   3

Functions

int tl_edges_bin (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest)
int tl_edges_vert_sobel (tlPixel *src, int width, int height, int pixel_width, tlRect *rect, tlPixel *dest)
int tl_edges_vert_prewitt (tlPixel *src, int width, int height, int pixel_width, tlRect *rect, tlPixel *dest)
int tl_edges_hor_sobel (tlPixel *src, int width, int height, int pixel_width, tlRect *rect, tlPixel *dest)


Define Documentation

#define TL_EDGES_BIN   0

Method tag for edges extraction.
BIN image edge extraction.

See also:
tlImage::edges()

#define TL_EDGES_MORPH   1

Method tag for edges extraction.
Morphological-based edge extraction.

See also:
tlImage::edges()

Referenced by tlImage::edges(), tlImage::edgesHor(), and tlImage::edgesVert().

#define TL_EDGES_PREWITT   3

Method tag for edges extraction.
Prewitt convolution image edge extraction.

See also:
tlImage::edges()

Referenced by tlImage::edges(), tlImage::edgesHor(), and tlImage::edgesVert().

#define TL_EDGES_SOBEL   2

Method tag for edges extraction.
Sobel convolution edge extraction.

See also:
tlImage::edges()

Referenced by tlImage::edges(), tlImage::edgesHor(), and tlImage::edgesVert().


Function Documentation

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

Binary image edge detection.

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

References tlSize::height, tl_edges_bin(), TL_ERRNO_MSG, TL_ERROR_NULL_POINTER, TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_NO_ERROR, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.

Referenced by tlImage::edges(), tlImage::edgesHor(), tlImage::edgesVert(), and tl_edges_bin().

int tl_edges_hor_sobel ( tlPixel src,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlPixel dest 
)

Horizontal image edge detection using the Sobel operator.

Parameters:
src pixel array containing image to convert
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the edge map
Returns:
0 on success, -1 otherwise. See error management for details.

References tl_convolution_x(), tl_convolution_y(), and tl_edges_hor_sobel().

Referenced by tlImage::edges(), tlImage::edgesHor(), and tl_edges_hor_sobel().

int tl_edges_vert_prewitt ( tlPixel src,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlPixel dest 
)

Vertical image edge detection using the Prewitt operator.

Parameters:
src pixel array containing image to convert
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the edge map
Returns:
0 on success, -1 otherwise.
See error management for details.

References tl_convolution_x(), tl_convolution_y(), and tl_edges_vert_prewitt().

Referenced by tlImage::edges(), tlImage::edgesVert(), and tl_edges_vert_prewitt().

int tl_edges_vert_sobel ( tlPixel src,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlPixel dest 
)

Vertical image edge detection using the Sobel operator.

Parameters:
src pixel array containing image to convert
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the edge map
Returns:
0 on success, -1 otherwise.
See error management for details.

References tl_convolution_x(), tl_convolution_y(), and tl_edges_vert_sobel().

Referenced by tlImage::edges(), tlImage::edgesVert(), and tl_edges_vert_sobel().



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.