TLIB documentation
 

tlFind.h File Reference


Detailed Description

Internal template matching operators.

#include "tlVision.h"

Include dependency graph for tlFind.h:

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

Go to the source code of this file.

Defines

#define TL_DEFAULT_INCREMENT   1

Functions

int tl_find_shape (tlPixelArray *pixelArray, tlMask *shape, int confidence, tlRect *rect, int increment)
int tl_find_best_shape (tlPixelArray *pixelArray, tlMask *shape, tlRect *rect, int increment)
int tl_find_object (tlPixelArray *pixelArray, tlObject *object, int confidence, tlRect *rect, int increment)
int tl_find_best_object (tlPixelArray *pixelArray, tlObject *object, tlRect *rect, int increment)


Define Documentation

#define TL_DEFAULT_INCREMENT   1

Default increment in [pix] used for correlation routines. The correlation routines will compare one pixel in every TL_DEFAULT_INCREMENT.


Function Documentation

int tl_find_best_object ( tlPixelArray image,
tlObject object,
tlRect rect,
int  increment 
)

Find the best match for a particular object in a given image; object and image have to be of the same format.

Parameters:
image the image to search
object the object to find
rect image portion to process
increment correlation increment [pix]
object [out] object location is updated
Returns:
confidence [%] on success, -1 otherwise.
See error management for details.

int tl_find_best_shape ( tlPixelArray image,
tlMask shape,
tlRect rect,
int  increment 
)

Find the best match for a particular shape in a given image.

Parameters:
image the BIN image to search
shape the shape mask
rect image portion to process
increment correlation increment [pix]
shape [out] shape location is updated
Returns:
confidence [%] on success, -1 otherwise.
See error management for details.

int tl_find_object ( tlPixelArray image,
tlObject object,
int  confidence,
tlRect rect,
int  increment 
)

Find a match for a particular object in an image, given a minimum confidence threshold; object and image have to be of the same format.

Parameters:
image the image to search
object the object to find
confidence min match threshold [%]
rect image portion to process
increment correlation increment [pix]
object [out] object location is updated
Returns:
confidence [%] on success, -1 otherwise.
See error management for details.

int tl_find_shape ( tlPixelArray image,
tlMask shape,
int  confidence,
tlRect rect,
int  increment 
)

Find a match for a particular shape in an image, given a minimum confidence threshold.

Parameters:
image the BIN image to search
shape the shape mask
confidence min match threshold [%]
rect image portion to process
increment correlation increment [pix]
shape shape location is updated
Returns:
confidence [%] 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.