#include "tlVision.h"
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 TL_DEFAULT_INCREMENT 1 |
Default increment in [pix] used for correlation routines. The correlation routines will compare one pixel in every TL_DEFAULT_INCREMENT.
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.
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 |
References tlMask::area, tlPixelArray::format, tlSize::height, tlPixelArray::pixel, tlPixelArray::pixelWidth, tlObject::shape, TL_ERRNO_MSG, TL_ERROR_INVALID_FORMAT, TL_ERROR_NOT_FOUND, TL_ERROR_NULL_POINTER, tl_find_best_object(), TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_PIXEL, tl_timer_get_time(), tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::findBest(), and tl_find_best_object().
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.
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 |
References tlMask::area, tlSize::height, tlPixelArray::pixel, tlPixelArray::pixelWidth, TL_ERRNO_MSG, TL_ERROR_INVALID_FORMAT, TL_ERROR_NOT_FOUND, TL_ERROR_NULL_POINTER, tl_find_best_shape(), TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::findBest(), and tl_find_best_shape().
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.
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 |
References tlPixelArray::format, tlSize::height, tlPixelArray::pixel, tlPixelArray::pixelWidth, TL_ERRNO_MSG, TL_ERROR_INVALID_FORMAT, TL_ERROR_NOT_FOUND, TL_ERROR_NULL_POINTER, tl_find_object(), TL_MAX, TL_MAX_PIXEL_VAL, TL_MIN, TL_MIN_PIXEL_VAL, TL_PIXEL, tl_timer_get_time(), tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::find(), and tl_find_object().
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.
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 |
References tlMask::area, tlSize::height, tlPixelArray::pixel, tlPixelArray::pixelWidth, tlLocation::setLocation(), TL_ERRNO_MSG, TL_ERROR_INVALID_FORMAT, TL_ERROR_NOT_FOUND, TL_ERROR_NULL_POINTER, tl_find_shape(), TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlPixelArray::find(), and tl_find_shape().