The tlMask object is a very simple structure that is used extensively in TLIB routines. It is a basic binary mask with position and size information that can be used to apply image processing routines to specific pixels only. A tlMask object is also used to define which pixels are part of an object in a given area. Mask objects can be combined, and support binary image processing routines such as morphological operators.
Public Member Functions | |
tlMask () | |
tlMask (int cx, int cy, int width, int height) | |
tlMask (tlMask *mask) | |
tlMask (tlImage *image) | |
virtual | ~tlMask () |
int | set () |
int | set (int width, int height) |
int | set (tlMask *mask) |
int | set (char *mask, int width, int height) |
int | set (char *mask, int width, int height, tlRect *rect) |
int | set (tlPixel *mask, int width, int height) |
int | set (tlPixel *mask, int width, int height, tlRect *rect) |
int | set (tlObject *object) |
int | set (tlImage *image) |
int | set (tlImage *image, tlRect *rect) |
int | invert () |
int | invert (tlRect *rect) |
int | setCenter () |
int | setCenter (int cx, int cy) |
int | clear () |
int | clear (int width, int height) |
int | fill () |
int | crop (int val) |
int | merge (tlMask *mask) |
int | adjust (tlRect *rect) |
int | minimize () |
int | copy (tlMask *mask) |
int | copyTo (tlMask *mask) |
int | init (tlPixelArray *pixelArray) |
int | init (tl_format format, int width, int height) |
int | init (int width, int height, int pixelWidth) |
int | setPixel (int val, int x, int y, int channel=0) |
int | setPixel (int val, tlPoint *point, int channel=0) |
int | getPixel (int x, int y, int channel=0) |
int | getPixel (tlPoint *point, int channel=0) |
int | copy (tlPixelArray *pixelArray) |
int | copy (tlPixelArray *pixelArray, tlRect *rect) |
int | copy (tlRect *rect) |
tlRect * | copy () |
int | copyTo (tlPixelArray *pixelArray) |
int | copyTo (tlPixelArray *pixelArray, tlRect *rect) |
int | copyTo (tlRect *rect) |
int | toRect (tlRect *rect) |
tlRect * | toRect () |
int | scale (float factor, int method=TL_SCALE_DECIMATE) |
int | scale (int newWidth, int newHeight, int method=TL_SCALE_DECIMATE) |
int | scale (float factor, tlPixelArray *dest, int method=TL_SCALE_DECIMATE) |
int | scale (int newWidth, int newHeight, tlPixelArray *dest, int method=TL_SCALE_DECIMATE) |
int | clear (tlRect *rect) |
int | addChannel () |
int | remChannel (int channel) |
int | remChannel (int channel, tlPixelArray *dest) |
int | toChannel (int channel) |
int | toChannel (int channel, tlRect *rect) |
int | toChannel (int channel, tlPixelArray *dest) |
int | toChannel (int channel, tlRect *rect, tlPixelArray *dest) |
int | putChannel (tlPixel *pixelArray, int channel) |
int | putChannel (tlPixel *pixelArray, tlRect *rect, int channel) |
int | putChannel (tlPixelArray *pixelArray, int channel) |
int | putChannel (tlPixelArray *pixelArray, tlRect *rect, int channel) |
int | putChannel (tlPixel *pixelArray, int channel, tlPixelArray *dest) |
int | putChannel (tlPixel *pixelArray, tlRect *rect, int channel, tlPixelArray *dest) |
int | putChannel (tlPixelArray *pixelArray, int channel, tlPixelArray *dest) |
int | putChannel (tlPixelArray *pixelArray, tlRect *rect, int channel, tlPixelArray *dest) |
int | swapChannels (int channel1, int channel2) |
int | swapChannels (int channel1, int channel2, tlPixelArray *dest) |
int | toRgb () |
int | toRgb (tlRect *rect) |
int | toRgb (tlPixelArray *dest) |
int | toRgb (tlRect *rect, tlPixelArray *dest) |
int | toYuv () |
int | toYuv (tlRect *rect) |
int | toYuv (tlPixelArray *dest) |
int | toYuv (tlRect *rect, tlPixelArray *dest) |
int | toNrg () |
int | toNrg (tlRect *rect) |
int | toNrg (tlPixelArray *dest) |
int | toNrg (tlRect *rect, tlPixelArray *dest) |
int | toHsi () |
int | toHsi (tlRect *rect) |
int | toHsi (tlPixelArray *dest) |
int | toHsi (tlRect *rect, tlPixelArray *dest) |
int | toGray () |
int | toGray (tlRect *rect) |
int | toGray (tlPixelArray *dest) |
int | toGray (tlRect *rect, tlPixelArray *dest) |
int | toBin (int threshold=1) |
int | toBin (int threshold, tlRect *rect) |
int | toBin (int min, int max) |
int | toBin (int min, int max, tlRect *rect) |
int | toBin (int threshold, tlPixelArray *dest) |
int | toBin (int threshold, tlRect *rect, tlPixelArray *dest) |
int | toBin (int min, int max, tlPixelArray *dest) |
int | toBin (int min, int max, tlRect *rect, tlPixelArray *dest) |
int | mask (tlRect *rect) |
int | mask (tlPixelArray *mask) |
int | mask (tlPixelArray *mask, tlRect *rect) |
int | mask (tlRect *rect, tlPixelArray *dest) |
int | mask (tlPixelArray *mask, tlPixelArray *dest) |
int | mask (tlPixelArray *mask, tlRect *rect, tlPixelArray *dest) |
int | add (tlPixelArray *pixelArray) |
int | add (tlPixelArray *pixelArray, tlRect *rect) |
int | add (tlPixelArray *pixelArray, tlPixelArray *dest) |
int | add (tlPixelArray *pixelArray, tlRect *rect, tlPixelArray *dest) |
int | sub (tlPixelArray *pixelArray) |
int | sub (tlPixelArray *pixelArray, tlRect *rect) |
int | sub (tlPixelArray *pixelArray, tlPixelArray *dest) |
int | sub (tlPixelArray *pixelArray, tlRect *rect, tlPixelArray *dest) |
int | convolution (char *kernel, int kernel_size) |
int | convolution (char *kernel, int kernel_width, int kernel_height) |
int | convolution (float *kernel, int kernel_size) |
int | convolution (float *kernel, int kernel_width, int kernel_height) |
int | convolution (char *kernel, int kernel_size, tlRect *rect) |
int | convolution (char *kernel, int kernel_width, int kernel_height, tlRect *rect) |
int | convolution (float *kernel, int kernel_size, tlRect *rect) |
int | convolution (float *kernel, int kernel_width, int kernel_height, tlRect *rect) |
int | convolution (char *xkernel, int xksize, char *ykernel, int yksize) |
int | convolution (char *xkernel, int xksize, char *ykernel, int yksize, tlRect *rect) |
int | convolution (float *xkernel, int xksize, float *ykernel, int yksize) |
int | convolution (float *xkernel, int xksize, float *ykernel, int yksize, tlRect *rect) |
int | convolution (char *kernel, int kernel_size, tlPixelArray *dest) |
int | convolution (char *kernel, int kernel_width, int kernel_height, tlPixelArray *dest) |
int | convolution (float *kernel, int kernel_size, tlPixelArray *dest) |
int | convolution (float *kernel, int kernel_width, int kernel_height, tlPixelArray *dest) |
int | convolution (char *kernel, int kernel_size, tlRect *rect, tlPixelArray *dest) |
int | convolution (char *kernel, int kernel_width, int kernel_height, tlRect *rect, tlPixelArray *dest) |
int | convolution (float *kernel, int kernel_size, tlRect *rect, tlPixelArray *dest) |
int | convolution (float *kernel, int kernel_width, int kernel_height, tlRect *rect, tlPixelArray *dest) |
int | convolution (char *xkernel, int xksize, char *ykernel, int yksize, tlPixelArray *dest) |
int | convolution (char *xkernel, int xksize, char *ykernel, int yksize, tlRect *rect, tlPixelArray *dest) |
int | convolution (float *xkernel, int xksize, float *ykernel, int yksize, tlPixelArray *dest) |
int | convolution (float *xkernel, int xksize, float *ykernel, int yksize, tlRect *rect, tlPixelArray *dest) |
int | convolution (float *xkernel, int xksize, float *ykernel, int yksize, tlRect *rect, tlPixelArray *mask, tlPixelArray *dest) |
int | median (int size) |
int | median (int size, tlRect *rect) |
int | erode (int size, tlRect *rect) |
int | erode (int size, tlRect *rect, tlPixelArray *dest) |
int | dilate (int size, tlRect *rect) |
int | dilate (int size, tlRect *rect, tlPixelArray *dest) |
int | opening (int size, tlRect *rect) |
int | opening (int size, tlRect *rect, tlPixelArray *dest) |
int | closing (int size, tlRect *rect) |
int | closing (int size, tlRect *rect, tlPixelArray *dest) |
int | thin (tlRect *rect) |
int | thin (tlRect *rect, tlPixelArray *dest) |
int | filter (int minVal, int maxVal) |
int | filter (int minVal, int maxVal, tlRect *rect) |
int | filter (int minVal, int maxVal, tlPixelArray *dest) |
int | filter (int minVal, int maxVal, tlRect *rect, tlPixelArray *dest) |
int | filter (tlColor *minColor, tlColor *maxColor) |
int | filter (tlColor *minColor, tlColor *maxColor, tlRect *rect) |
int | filter (tlColor *minColor, tlColor *maxColor, tlPixelArray *dest) |
int | filter (tlColor *minColor, tlColor *maxColor, tlRect *rect, tlPixelArray *dest) |
int | getMax (tlMask *mask, tlPoint *point, int channel=0) |
int | getMin (tlMask *mask, tlPoint *point, int channel=0) |
int | getColor (tlPoint *point, tlColor *color) |
int | getColor (int x, int y, tlColor *color) |
int | getColors (tlColor *minColor, tlColor *maxColor) |
int | getColors (tlColor *minColor, tlColor *maxColor, tlRect *rect) |
int | getColorMin (tlColor *minColor) |
int | getColorMin (tlColor *minColor, tlRect *rect) |
int | getColorMax (tlColor *maxColor) |
int | getColorMax (tlColor *maxColor, tlRect *rect) |
int | find (tlObject *object, int confidence, int increment=TL_DEFAULT_INCREMENT) |
int | find (tlObject *object, int confidence, tlRect *rect, int increment=TL_DEFAULT_INCREMENT) |
int | find (tlMask *shape, int confidence, int increment=TL_DEFAULT_INCREMENT) |
int | find (tlMask *shape, int confidence, tlRect *rect, int increment=TL_DEFAULT_INCREMENT) |
int | findBest (tlObject *object, int increment=TL_DEFAULT_INCREMENT) |
int | findBest (tlObject *object, tlRect *rect, int increment=TL_DEFAULT_INCREMENT) |
int | findBest (tlMask *shape, int increment=TL_DEFAULT_INCREMENT) |
int | findBest (tlMask *shape, tlRect *rect, int increment=TL_DEFAULT_INCREMENT) |
int | findShape (tlObject *object, int confidence, int increment=TL_DEFAULT_INCREMENT) |
int | findShape (tlObject *object, int confidence, tlRect *rect, int increment=TL_DEFAULT_INCREMENT) |
int | findBestShape (tlObject *object, int increment=TL_DEFAULT_INCREMENT) |
int | findBestShape (tlObject *object, tlRect *rect, int increment=TL_DEFAULT_INCREMENT) |
int | buildHist (tlHist *hist, tlMask *mask, tlRect *rect, int channel=0) |
int | buildHist (tlHist2D *hist, tlMask *mask, tlRect *rect, int xchannel=0, int ychannel=1) |
int | set (int x, int y, int width, int height) |
int | collapse (int dsize) |
int | expand (int dsize) |
int | intersect (tlRect *rect) |
int | setSize (int width, int height, int depth=255) |
int | setLocation (int x, int y, int disp=0) |
int | setLocation (tlPoint *point) |
int | shift (int dx, int dy, int ddisp=0) |
int | setWorldLocation (float wx, float wy, float wz) |
tlLocation * | toLocation () |
int | toLocation (tlLocation *location) |
Public Attributes | |
int | cx |
int | cy |
int | area |
tl_format | format |
unsigned long | timeStamp |
int | pixelWidth |
tlPixel * | pixel |
int | width |
int | height |
int | depth |
int | x |
int | y |
int | disp |
float | wx |
float | wy |
float | wz |
Protected Member Functions | |
int | create (tl_format format, int width, int height) |
int | deletePixel () |
tlMask::tlMask | ( | ) |
tlMask::tlMask | ( | int | cx, | |
int | cy, | |||
int | width, | |||
int | height | |||
) |
Constructor, build a mask of a given size at a given position.
cx | mask center x coord (w/ respect to UL corner) | |
cy | mask center y coord (w/ respect to UL corner) | |
width | mask width | |
height | mask height |
tlMask::tlMask | ( | tlMask * | mask | ) |
Constructor, create a copy of an existing mask.
mask | mask to copy |
tlMask::tlMask | ( | tlImage * | image | ) |
Constructor, create a a mask from a binary image.
image | binary image to copy as a mask |
tlMask::~tlMask | ( | ) | [virtual] |
int tlMask::set | ( | ) |
Set mask to fully active (transparent).
int tlMask::set | ( | int | width, | |
int | height | |||
) |
Change mask size and set mask to fully active (transparent).
width | new mask width [pix] | |
height | new mask height [pix] |
int tlMask::set | ( | tlMask * | mask | ) |
Copy mask attributes and data from another mask.
mask | mask to copy data from |
int tlMask::set | ( | char * | mask, | |
int | width, | |||
int | height | |||
) |
Set up a mask from a byte array. Non-zero elements in the byte array will be translated in active (transparent) pixels in the mask. Null elements in the byte array will turn into inactive (opaque) mask pixels.
mask | byte array | |
width | byte array width [pix] | |
height | byte array height [pix] |
int tlMask::set | ( | char * | mask, | |
int | width, | |||
int | height, | |||
tlRect * | rect | |||
) |
Set up a mask from a portion of a byte array. Works like set(char *mask, int width, int height), only on a portion of a byte array. The resulting mask has the size of the rect argument.
mask | byte array | |
width | byte array width [pix] | |
height | byte array height [pix] | |
rect | portion of the mask to use |
int tlMask::set | ( | tlPixel * | mask, | |
int | width, | |||
int | height | |||
) |
Set up a mask from a pixel array. Non-zero elements in the pixel array will be translated in active (transparent) pixels in the mask. Null elements in the pixel array will turn into inactive (opaque) mask pixels.
mask | pixel array | |
width | pixel array width [pix] | |
height | pixel array height [pix] |
Set up a mask from a portion of a pixel array. Works like set(tlPixel *mask, int width, int height), only on a portion of a pixel array. The resulting mask has the size of the rect argument.
mask | pixel array | |
width | pixel array width [pix] | |
height | pixel array height [pix] | |
rect | portion of the pixel array to use |
int tlMask::set | ( | tlObject * | object | ) |
Set up a mask from a tlObject pixel array. Works like set(tlPixel *pixel, int width, int height). Takes a tlObject pixel array as an input array.
object | the object to get the mask from |
int tlMask::set | ( | tlImage * | image | ) |
Set up a mask from a tlImage pixel array. Works like set(tlPixel *pixel, int width, int height). Takes a tlImage pixel array as an input array.
image | the image to get the mask from |
Set up a mask from a portion of a tlImage pixel array. Works like set(tlPixel *pixel, int width, int height). Takes a portion tlImage pixel array as an input array. The resulting mask has the size of the rect argument.
image | the image to get the mask from | |
rect | subimage to process |
int tlMask::invert | ( | ) |
Inverse all the pixels of a mask.
int tlMask::invert | ( | tlRect * | rect | ) |
Inverse all the pixels in a portion of a mask.
int tlMask::setCenter | ( | ) |
Set up the mask center coordinates to be the barycenter. The barycenter (cx,cy) is expressed in pixels, respectively to the mask UL corner.
int tlMask::setCenter | ( | int | cx, | |
int | cy | |||
) |
Set up the mask center coordinates. The center (cx,cy) is expressed in pixels, respectively to the mask UL corner.
cx | mask center x coord (w/ respect to mask UL corner) | |
cy | mask center y coord (w/ respect to mask UL corner) |
Reimplemented from tlRect.
int tlMask::clear | ( | void | ) |
Set mask to fully inactive (opaque).
Reimplemented from tlPixelArray.
int tlMask::clear | ( | int | width, | |
int | height | |||
) |
Set mask to fully inactive and change mask size.
width | mask width | |
height | mask height |
int tlMask::fill | ( | void | ) |
Fill all "holes" in the mask structure. That is, make the mask convex.
int tlMask::crop | ( | int | val | ) |
Remove a given "layer" of pixels around the mask.
int tlMask::merge | ( | tlMask * | mask | ) |
Superimpose two masks and merges their data.
mask | mask to merge with |
int tlMask::adjust | ( | tlRect * | rect | ) |
Adjust to any rectangular component. The resulting mask will be the size of the rect argument. The mask pixel will be translated according to the mask x,y position in the rect coordonates.
rect | pointer to a valid rectangular object to adjust to |
int tlMask::minimize | ( | ) |
Minimize the mask size so that it is just big enough to contain active pixels. This method gets rid of the "empty edges" of the mask.
int tlMask::copy | ( | tlMask * | mask | ) |
Copy mask attributes and data from another mask.
mask | mask to copy data from |
int tlMask::copyTo | ( | tlMask * | mask | ) |
Copy mask attributes and data to another mask.
mask | mask to copy data to |
int tlPixelArray::create | ( | tl_format | format, | |
int | width, | |||
int | height | |||
) | [protected, inherited] |
Perform pixel array creation and allocation.
format | pixel array format | |
width | pixel array width [pix] | |
height | pixel array height [pix] |
int tlPixelArray::deletePixel | ( | void | ) | [protected, inherited] |
Deallocate the pixel array pixel array.
int tlPixelArray::init | ( | tlPixelArray * | pixelArray | ) | [inherited] |
Image initialization copies attributes from another pixel array. The pixel array, however, is allocated but not copied.
pixelArray | reference pixel array |
int tlPixelArray::init | ( | tl_format | format, | |
int | width, | |||
int | height | |||
) | [inherited] |
Image initialization reset the pixel array format and size. The pixel array is reallocated accordingly.
format | pixel array format | |
width | pixel array width [pix] | |
height | pixel array height [pix] |
int tlPixelArray::init | ( | int | width, | |
int | height, | |||
int | pixelWidth | |||
) | [inherited] |
Image initialization reset the pixel array format and size. The pixel array is reallocated accordingly.
width | pixel array width [pix] | |
height | pixel array height [pix] | |
pixelWidth | pixel width [bytes] |
int tlPixelArray::setPixel | ( | int | val, | |
int | x, | |||
int | y, | |||
int | channel = 0 | |||
) | [inherited] |
Set the pixel value at the given position, and for the given channel.
val | new pixel value | |
x | X position in pixel array | |
y | Y position in pixel array | |
channel | channel index |
int tlPixelArray::setPixel | ( | int | val, | |
tlPoint * | point, | |||
int | channel = 0 | |||
) | [inherited] |
Set the pixel value at the given position, and for the given channel.
val | new pixel value | |
point | pixel position in pixel array | |
channel | channel index |
int tlPixelArray::getPixel | ( | int | x, | |
int | y, | |||
int | channel = 0 | |||
) | [inherited] |
Return the pixel value at the given position.
x | position in pixel array | |
y | position in pixel array | |
channel | specific channel |
int tlPixelArray::getPixel | ( | tlPoint * | point, | |
int | channel = 0 | |||
) | [inherited] |
Return the pixel value at a given position for a given channel.
point | pixel location | |
channel | specific channel (default is 0) |
int tlPixelArray::copy | ( | tlPixelArray * | pixelArray | ) | [inherited] |
Copy the pixel array content from another pixel array.
pixelArray | the pixel array to copy from |
int tlPixelArray::copy | ( | tlPixelArray * | pixelArray, | |
tlRect * | rect | |||
) | [inherited] |
Copy the pixel array content from another pixel array.
pixelArray | the pixel array to copy from | |
rect | portion of the pixel array to copy from |
int tlRect::copy | ( | tlRect * | rect | ) | [inherited] |
Copy the rectangle parameters from another tlRect object.
rect | the rectangle that should be copied |
tlRect * tlRect::copy | ( | ) | [inherited] |
Create a copy of the rectangle.
delete
when done with it.int tlPixelArray::copyTo | ( | tlPixelArray * | dest | ) | [inherited] |
Copy the pixel array content to another pixel array.
dest | [out] the pixel array to copy content to |
int tlPixelArray::copyTo | ( | tlPixelArray * | dest, | |
tlRect * | rect | |||
) | [inherited] |
Copy the pixel array content to another pixel array.
rect | part of the pixel array to copy | |
dest | [out] the pixel array to copy content to |
int tlRect::copyTo | ( | tlRect * | rect | ) | [inherited] |
Copy rectangle parameters to another rect object
rect | the rectangle that should contained copied parameters |
int tlPixelArray::toRect | ( | tlRect * | rect | ) | [inherited] |
Reset a tlRect object with the pixel array dimensions.
rect | [out] the bounding rectangle |
tlRect * tlPixelArray::toRect | ( | ) | [inherited] |
int tlPixelArray::scale | ( | float | factor, | |
int | method = TL_SCALE_DECIMATE | |||
) | [inherited] |
Scale the pixel array.
factor | the fp scaling factor | |
method | scaling method |
int tlPixelArray::scale | ( | int | newWidth, | |
int | newHeight, | |||
int | method = TL_SCALE_DECIMATE | |||
) | [inherited] |
Scale the pixel array.
newWidth | desired width of the scaled image | |
newHeight | desired height of the scaled image | |
method | scaling method |
int tlPixelArray::scale | ( | float | factor, | |
tlPixelArray * | dest, | |||
int | method = TL_SCALE_DECIMATE | |||
) | [inherited] |
Copy a scaled version of the pixel array to another pixel array.
factor | the fp scaling factor | |
method | scaling method | |
dest | destination pixel array |
int tlPixelArray::scale | ( | int | newWidth, | |
int | newHeight, | |||
tlPixelArray * | dest, | |||
int | method = TL_SCALE_DECIMATE | |||
) | [inherited] |
Copy a scaled version of the pixel array to another pixel array.
newWidth | desired width of the scaled image | |
newHeight | desired height of the scaled image | |
method | scaling method | |
dest | destination pixel array |
int tlPixelArray::clear | ( | tlRect * | rect | ) | [inherited] |
Set all pixels in a portion of the pixel array to black.
rect | portion of the pixel array to clear |
int tlPixelArray::addChannel | ( | void | ) | [inherited] |
Add a channel to a pixel array. The new channel is added after the current last channel.
int tlPixelArray::remChannel | ( | int | channel | ) | [inherited] |
Remove a channel from a pixel array.
channel | channel to remove |
int tlPixelArray::remChannel | ( | int | channel, | |
tlPixelArray * | dest | |||
) | [inherited] |
Remove a channel from a pixel array and store the result in a new pixel array.
channel | channel to remove | |
dest | [out] destination pixel array |
int tlPixelArray::toChannel | ( | int | channel | ) | [inherited] |
Extract one of the pixel array channel.
channel | channel to extract |
int tlPixelArray::toChannel | ( | int | channel, | |
tlRect * | rect | |||
) | [inherited] |
Extract a portion of one of the pixel array channel.
channel | channel to extract | |
rect | portion of the pixel array to convert |
int tlPixelArray::toChannel | ( | int | channel, | |
tlPixelArray * | dest | |||
) | [inherited] |
Extract one of the pixel array channel. The result is put in another pixel array.
channel | channel to extract | |
dest | [out] destination pixel array |
int tlPixelArray::toChannel | ( | int | channel, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Extract a portion of one of the pixel array channel. The result is put in another pixel array.
channel | channel to extract | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::putChannel | ( | tlPixel * | pixelArray, | |
int | channel | |||
) | [inherited] |
Add a channel to a pixel array at a given index.
pixelArray | pixel array to insert in the pixel array | |
channel | channel where pixel array is to be inserted |
Add a channel to part of a pixel array at a given index.
pixelArray | pixel array to insert in the pixel array | |
channel | channel where pixel array is to be inserted | |
rect | portion of the pixel array to process |
int tlPixelArray::putChannel | ( | tlPixelArray * | pixelArray, | |
int | channel | |||
) | [inherited] |
Add a channel to a pixel array at a given index.
pixelArray | pixel array to insert | |
channel | channel where pixel array is to be inserted |
int tlPixelArray::putChannel | ( | tlPixelArray * | pixelArray, | |
tlRect * | rect, | |||
int | channel | |||
) | [inherited] |
Add a channel to part of a pixel array at a given index.
pixelArray | pixel array to insert | |
channel | channel where pixel array is to be inserted | |
rect | portion of the pixel array to process |
int tlPixelArray::putChannel | ( | tlPixel * | pixelArray, | |
int | channel, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Add a channel to a pixel array at a given index, and store the result in a new pixel array
pixelArray | pixel array to insert in the pixel array | |
channel | channel where pixel array is to be inserted | |
dest | [out] destination pixel array |
int tlPixelArray::putChannel | ( | tlPixel * | pixelArray, | |
tlRect * | rect, | |||
int | channel, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Add a channel to part of an pixel array at a given index, and store the result in a new pixel array.
pixelArray | pixel array to insert in the pixel array | |
channel | channel where pixel array is to be inserted | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::putChannel | ( | tlPixelArray * | pixelArray, | |
int | channel, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Add a channel to a pixel array at a given index and store the result in a new pixel array
pixelArray | pixel array to insert | |
channel | channel where pixel array is to be inserted | |
dest | [out] destination pixel array |
int tlPixelArray::putChannel | ( | tlPixelArray * | pixelArray, | |
tlRect * | rect, | |||
int | channel, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Add a channel to part of an pixel array at a given index and store the result in a new pixel array
pixelArray | pixel array to insert | |
channel | channel where pixel array is to be inserted | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::swapChannels | ( | int | channel1, | |
int | channel2 | |||
) | [inherited] |
Swap two channels in a pixel array.
channel1 | first channel to swap | |
channel2 | second channel to swap |
int tlPixelArray::swapChannels | ( | int | channel1, | |
int | channel2, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Swap two channels in a pixel array and store the result in a new pixel array.
channel1 | first channel to swap | |
channel2 | second channel to swap | |
dest | [out] destination pixel array |
int tlPixelArray::toRgb | ( | ) | [inherited] |
Convert the pixel array to RGB format.
int tlPixelArray::toRgb | ( | tlRect * | rect | ) | [inherited] |
Convert part of the pixel array to RGB format
rect | portion of the pixel array to convert |
int tlPixelArray::toRgb | ( | tlPixelArray * | dest | ) | [inherited] |
Convert the pixel array to RGB format. The result is put in another pixel array.
dest | [out] convert to destination pixel array |
int tlPixelArray::toRgb | ( | tlRect * | rect, | |
tlPixelArray * | dest | |||
) | [inherited] |
Convert part of the pixel array to RGB format. The result is put in another pixel array.
rect | portion of the pixel array to convert | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toYuv | ( | ) | [inherited] |
Convert the pixel array to YUV format.
int tlPixelArray::toYuv | ( | tlRect * | rect | ) | [inherited] |
Convert part of the pixel array to YUV format
rect | portion of the pixel array to convert |
int tlPixelArray::toYuv | ( | tlPixelArray * | dest | ) | [inherited] |
Convert the pixel array to YUV format. The result is put in another pixel array.
dest | [out] convert to destination pixel array |
int tlPixelArray::toYuv | ( | tlRect * | rect, | |
tlPixelArray * | dest | |||
) | [inherited] |
Convert part of the pixel array to YUV format. The result is put in another pixel array.
rect | portion of the pixel array to convert | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toNrg | ( | ) | [inherited] |
Convert the pixel array to NRG format.
int tlPixelArray::toNrg | ( | tlRect * | rect | ) | [inherited] |
Convert part of the pixel array to NRG format.
rect | portion of the pixel array to convert |
int tlPixelArray::toNrg | ( | tlPixelArray * | dest | ) | [inherited] |
Convert the pixel array to NRG format. The result is put in another pixel array.
dest | [out] convert to destination pixel array |
int tlPixelArray::toNrg | ( | tlRect * | rect, | |
tlPixelArray * | dest | |||
) | [inherited] |
Convert part of the pixel array to NRG format. The result is put in another pixel array.
rect | portion of the pixel array to convert | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toHsi | ( | ) | [inherited] |
Convert the pixel array to HSI format.
int tlPixelArray::toHsi | ( | tlRect * | rect | ) | [inherited] |
Convert part of the pixel array to HSI format.
rect | portion of the pixel array to convert |
int tlPixelArray::toHsi | ( | tlPixelArray * | dest | ) | [inherited] |
Convert the pixel array to HSI format. The result is put in another pixel array.
dest | [out] convert to destination pixel array |
int tlPixelArray::toHsi | ( | tlRect * | rect, | |
tlPixelArray * | dest | |||
) | [inherited] |
Convert part of the pixel array to HSI format. The result is put in another pixel array.
rect | portion of the pixel array to convert | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toGray | ( | ) | [inherited] |
Convert the pixel array to GRAY format.
int tlPixelArray::toGray | ( | tlRect * | rect | ) | [inherited] |
Convert part of the pixel array to GRAY format.
rect | portion of the pixel array to convert |
int tlPixelArray::toGray | ( | tlPixelArray * | dest | ) | [inherited] |
Convert the pixel array to GRAY format. The result is put in another pixel array.
dest | [out] convert to destination pixel array |
int tlPixelArray::toGray | ( | tlRect * | rect, | |
tlPixelArray * | dest | |||
) | [inherited] |
Convert part of the pixel array to GRAY format. The result is put in another pixel array.
rect | portion of the pixel array to convert | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toBin | ( | int | threshold = 1 |
) | [inherited] |
Convert the pixel array to BINARY format.
threshold | binary threshold ´[0...255] |
int tlPixelArray::toBin | ( | int | threshold, | |
tlRect * | rect | |||
) | [inherited] |
Convert part of the pixel array to BINARY format.
threshold | binary threshold [0...255] | |
rect | portion of the pixel array to convert |
int tlPixelArray::toBin | ( | int | min, | |
int | max | |||
) | [inherited] |
Convert the pixel array to BINARY format. The result is put in another pixel array.
min | binary lower threshold [0...255] | |
max | binary upper threshold [0...255] |
int tlPixelArray::toBin | ( | int | min, | |
int | max, | |||
tlRect * | rect | |||
) | [inherited] |
Convert part of the pixel array to BINARY format. The result is put in another pixel array.
min | binary lower threshold [0...255] | |
max | binary upper threshold [0...255] | |
rect | portion of the pixel array to convert |
int tlPixelArray::toBin | ( | int | threshold, | |
tlPixelArray * | dest | |||
) | [inherited] |
Convert the pixel array to GRAY format. The result is put in another pixel array.
threshold | binary threshold [0...255] | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toBin | ( | int | threshold, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convert part of the pixel array to BINARY format. The result is put in another pixel array.
threshold | binary threshold [0...255] | |
rect | portion of the pixel array to process | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toBin | ( | int | min, | |
int | max, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convert the pixel array to BINARY format. The result is put in another pixel array.
min | binary lower threshold [0...255] | |
max | binary upper threshold [0...255] | |
dest | [out] convert to destination pixel array |
int tlPixelArray::toBin | ( | int | min, | |
int | max, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convert part of the pixel array to BINARY format. The result is put in another pixel array.
min | binary lower threshold [0...255] | |
max | binary upper threshold [0...255] | |
rect | portion of the pixel array to process | |
dest | [out] convert to destination pixel array |
int tlPixelArray::mask | ( | tlRect * | rect | ) | [inherited] |
Hide all the pixels that are not in a given portion of the image by setting their value to 0 on every channel.
rect | the portion of the pixel array to keep |
int tlPixelArray::mask | ( | tlPixelArray * | pixelArray | ) | [inherited] |
Hide the pixel array behind a given mask (provided by a binary pixel array) by setting all inactive pixels to value 0 on every channel.
pixelArray | the binary pixel array to apply as a mask to the pixel array |
int tlPixelArray::mask | ( | tlPixelArray * | mask, | |
tlRect * | rect | |||
) | [inherited] |
Hide a portion of the pixel array behind a given mask (provided by a binary pixel array) by setting all inactive pixels to value 0 on every channel.
mask | the binary pixel array to apply as a mask to the pixel array | |
rect | the portion of the pixel array to mask |
int tlPixelArray::mask | ( | tlRect * | rect, | |
tlPixelArray * | dest | |||
) | [inherited] |
Hide all the pixels that are not in a given portion of the image by setting their value to 0 on every channel. The result is placed in the dest pixel array.
rect | the portion of the pixel array to keep | |
dest | the destination pixel array |
int tlPixelArray::mask | ( | tlPixelArray * | pixelArray, | |
tlPixelArray * | dest | |||
) | [inherited] |
Hide the pixel array behind a given mask (provided by a binary pixel array) by setting all inactive pixels to value 0 on every channel. The result is placed in the dest pixel array.
pixelArray | the binary pixel array to apply as a mask to the pixel array | |
dest | the destination pixel array |
int tlPixelArray::mask | ( | tlPixelArray * | mask, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Hide a portion of the pixel array behind a given mask (provided by a binary pixel array) by setting all inactive pixels to value 0 on every channel. The result is placed in the dest pixel array.
mask | the binary pixel array to apply as a mask to the pixel array | |
rect | the portion of the pixel array to mask | |
dest | the destination pixel array |
int tlPixelArray::add | ( | tlPixelArray * | pixelArray | ) | [inherited] |
Add a pixel array to another.
pixelArray | the pixel array to add to the current pixel array |
int tlPixelArray::add | ( | tlPixelArray * | pixelArray, | |
tlRect * | rect | |||
) | [inherited] |
Add part of a pixel array to another.
pixelArray | the pixel array to add to the current pixel array | |
rect | portion of the pixel array to process |
int tlPixelArray::add | ( | tlPixelArray * | pixelArray, | |
tlPixelArray * | dest | |||
) | [inherited] |
Add a pixel array to another; the result is put into a third pixel array.
pixelArray | the pixel array to add to the current pixel array | |
dest | [out] the destination pixel array |
int tlPixelArray::add | ( | tlPixelArray * | pixelArray, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Add part of a pixel array to another; the result is put into a third pixel array
pixelArray | the pixel array to add to the current pixel array | |
rect | portion of the pixel array to process | |
dest | [out] the destination pixel array |
int tlPixelArray::sub | ( | tlPixelArray * | pixelArray | ) | [inherited] |
Subtract a pixel array from another.
pixelArray | the pixel array to subtract from the current pixel array |
int tlPixelArray::sub | ( | tlPixelArray * | pixelArray, | |
tlRect * | rect | |||
) | [inherited] |
Subtract part of a pixel array from another
pixelArray | the pixel array to subtract from the current pixel array | |
rect | portion of the pixel array to process |
int tlPixelArray::sub | ( | tlPixelArray * | pixelArray, | |
tlPixelArray * | dest | |||
) | [inherited] |
Subtract a pixel array from another; the result is put into a third pixel array
pixelArray | the pixel array to subtract from the current pixel array | |
dest | [out] the destination pixel array |
int tlPixelArray::sub | ( | tlPixelArray * | pixelArray, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Subtract part of a pixel array from another; the result is put into a third pixel array
pixelArray | the pixel array to subtract from the current pixel array | |
rect | portion of the pixel array to process | |
dest | [out] the destination pixel array |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_size | |||
) | [inherited] |
Convolution with an integer square kernel.
kernel | convolution kernel (integer values) | |
kernel_size | square kernel dimension |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_width, | |||
int | kernel_height | |||
) | [inherited] |
Convolution with an integer rectangular kernel.
kernel | convolution kernel (integer values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_size | |||
) | [inherited] |
Convolution with a floating point square convolution kernel.
kernel | convolution kernel (floating-point values) | |
kernel_size | square kernel dimension |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_width, | |||
int | kernel_height | |||
) | [inherited] |
Convolution with a floating point rectangular convolution kernel.
kernel | convolution kernel (floating-point values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_size, | |||
tlRect * | rect | |||
) | [inherited] |
Convolution of part of the pixel array with an integer square convolution kernel.
kernel | convolution kernel (integer values) | |
kernel_size | square kernel dimension | |
rect | portion of the pixel array to process |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_width, | |||
int | kernel_height, | |||
tlRect * | rect | |||
) | [inherited] |
Convolution of part of the pixel array with an integer rectangular convolution kernel.
kernel | convolution kernel (integer values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height | |
rect | portion of the pixel array to process |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_size, | |||
tlRect * | rect | |||
) | [inherited] |
Convolution of part of the pixel array with a floating point square convolution kernel.
kernel | convolution kernel (floating-point values) | |
kernel_size | square kernel dimension | |
rect | portion of the pixel array to process |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_width, | |||
int | kernel_height, | |||
tlRect * | rect | |||
) | [inherited] |
Convolution of part of the pixel array with a floating point rectangular convolution kernel.
kernel | convolution kernel (floating-point values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height | |
rect | portion of the pixel array to process |
int tlPixelArray::convolution | ( | char * | xkernel, | |
int | xksize, | |||
char * | ykernel, | |||
int | yksize | |||
) | [inherited] |
Convolution with a separable integer kernel.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size |
int tlPixelArray::convolution | ( | char * | xkernel, | |
int | xksize, | |||
char * | ykernel, | |||
int | yksize, | |||
tlRect * | rect | |||
) | [inherited] |
Convolution of part of the pixel array with a separable integer kernel.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size | |
rect | portion of the pixel array to process |
int tlPixelArray::convolution | ( | float * | xkernel, | |
int | xksize, | |||
float * | ykernel, | |||
int | yksize | |||
) | [inherited] |
Convolution with a separable floating point kernel.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size |
int tlPixelArray::convolution | ( | float * | xkernel, | |
int | xksize, | |||
float * | ykernel, | |||
int | yksize, | |||
tlRect * | rect | |||
) | [inherited] |
Convolution of part of the pixel array with a separable floating point kernel.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size | |
rect | portion of the pixel array to process |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_size, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution with an integer square kernel. Put the result in another pixel array.
kernel | convolution kernel (integer values) | |
kernel_size | square kernel dimension | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_width, | |||
int | kernel_height, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution with an integer rectangular kernel. Put the result in another pixel array.
kernel | convolution kernel (integer values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_size, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution with a floating point square convolution kernel. Put the result in another pixel array.
kernel | convolution kernel (floating-point values) | |
kernel_size | square kernel dimension | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_width, | |||
int | kernel_height, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution with a floating point rectangular convolution kernel. Put the result in another pixel array.
kernel | convolution kernel (floating-point values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_size, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution of part of the pixel array with an integer square convolution kernel. Put the result in another pixel array.
kernel | convolution kernel (integer values) | |
kernel_size | square kernel dimension | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | char * | kernel, | |
int | kernel_width, | |||
int | kernel_height, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution of part of the pixel array with an integer rectangular convolution kernel. Put the result in another pixel array.
kernel | convolution kernel (integer values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_size, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution of part of the pixel array with a floating point square convolution kernel. Put the result in another pixel array.
kernel | convolution kernel (floating-point values) | |
kernel_size | square kernel dimension | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | float * | kernel, | |
int | kernel_width, | |||
int | kernel_height, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution of part of the pixel array with a floating point rectangular convolution kernel. Put the result in another pixel array.
kernel | convolution kernel (floating-point values) | |
kernel_width | convolution kernel width | |
kernel_height | convolution kernel height | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | char * | xkernel, | |
int | xksize, | |||
char * | ykernel, | |||
int | yksize, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution with a separable integer kernel. Put the result in another pixel array.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | char * | xkernel, | |
int | xksize, | |||
char * | ykernel, | |||
int | yksize, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution of part of the pixel array with a separable integer kernel. Put the result in another pixel array.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | float * | xkernel, | |
int | xksize, | |||
float * | ykernel, | |||
int | yksize, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution with a separable floating point kernel. Put the result in another pixel array.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | float * | xkernel, | |
int | xksize, | |||
float * | ykernel, | |||
int | yksize, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution of part of the pixel array with a separable floating point kernel. Put the result in another pixel array.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::convolution | ( | float * | xkernel, | |
int | xksize, | |||
float * | ykernel, | |||
int | yksize, | |||
tlRect * | rect, | |||
tlPixelArray * | mask, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Convolution of part of the pixel array with a separable floating point kernel. Put the result in another pixel array.
xkernel | convolution kernel along the X axis | |
xksize | X convolution kernel size | |
ykernel | convolution kernel along the Y axis | |
yksize | Y convolution kernel size | |
rect | portion of the pixel array to process | |
mask | actual pixels to process | |
dest | [out] destination pixel array |
int tlPixelArray::median | ( | int | size | ) | [inherited] |
Apply a median filter to the pixel array.
size | size of the median kernel |
int tlPixelArray::median | ( | int | size, | |
tlRect * | rect | |||
) | [inherited] |
Apply a median filter to a portion of the pixel array.
size | size of the median kernel | |
rect | portion of the pixel array to process |
int tlPixelArray::erode | ( | int | size, | |
tlRect * | rect | |||
) | [inherited] |
Perform morphological erosion on the pixel array using a square mask. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process |
int tlPixelArray::erode | ( | int | size, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Perform morphological erosion on the pixel array using a square mask; the result is put in another pixel array. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::dilate | ( | int | size, | |
tlRect * | rect | |||
) | [inherited] |
Perform morphological dilatation on the pixel array using a square mask. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process |
int tlPixelArray::dilate | ( | int | size, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Perform morphological dilatation on the pixel array using a square mask; the result is put in another pixel array. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::opening | ( | int | size, | |
tlRect * | rect | |||
) | [inherited] |
Perform morphological opening on the pixel array using a square mask. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process |
int tlPixelArray::opening | ( | int | size, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Perform morphological opening on the pixel array using a square mask; the result is put in another pixel array. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::closing | ( | int | size, | |
tlRect * | rect | |||
) | [inherited] |
Perform morphological closing on the pixel array using a square mask. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process |
int tlPixelArray::closing | ( | int | size, | |
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Perform morphological closing on the pixel array using a square mask; the result is put in another pixel array. The operation is performed on every pixel array channel independantly.
size | the square mask size [pix] | |
rect | the portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::thin | ( | tlRect * | rect | ) | [inherited] |
Perform morphological (hit and miss) thinning on the pixel array using a square mask. The operation is performed on BIN type only.
rect | the portion of the pixel array to process |
int tlPixelArray::thin | ( | tlRect * | rect, | |
tlPixelArray * | dest | |||
) | [inherited] |
Perform morphological (hit and miss) thinning on the pixel array using a square mask; the result is put in another pixel array. The operation is performed on BIN type only.
rect | the portion of the pixel array to process | |
dest | [out] destination pixel array |
int tlPixelArray::filter | ( | int | minVal, | |
int | maxVal | |||
) | [inherited] |
Filter a monochrome pixel array using arbitrary boundaries.
minVal | lower pixel value boundary | |
maxVal | upper pixel value boundary |
int tlPixelArray::filter | ( | int | minVal, | |
int | maxVal, | |||
tlRect * | rect | |||
) | [inherited] |
Filter a portion of a monochrome pixel array using arbitrary boundaries.
minVal | lower pixel value boundary | |
maxVal | upper pixel value boundary | |
rect | portion of the pixel array to process |
int tlPixelArray::filter | ( | int | minVal, | |
int | maxVal, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Filter a monochrome pixel array using arbitrary boundaries. The result is put in another pixel array.
minVal | lower pixel value boundary | |
maxVal | upper pixel value boundary | |
dest | [out] the destination pixel array |
int tlPixelArray::filter | ( | int | minVal, | |
int | maxVal, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Filter a portion of a monochrome pixel array using arbitrary boundaries. The result is put in another pixel array.
minVal | lower pixel value boundary | |
maxVal | upper pixel value boundary | |
rect | portion of the pixel array to process | |
dest | [out] the destination pixel array |
Filter a pixel array using color boundaries.
minColor | lower pixel value boundary | |
maxColor | upper pixel value boundary |
Filter a portion of a pixel array using color boundaries.
minColor | lower pixel value boundary | |
maxColor | upper pixel value boundary | |
rect | portion of the pixel array to process |
int tlPixelArray::filter | ( | tlColor * | minColor, | |
tlColor * | maxColor, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Filter a pixel array using color boundaries. The result is put in another pixel array.
minColor | lower pixel value boundary | |
maxColor | upper pixel value boundary | |
dest | [out] destination pixel array |
int tlPixelArray::filter | ( | tlColor * | minColor, | |
tlColor * | maxColor, | |||
tlRect * | rect, | |||
tlPixelArray * | dest | |||
) | [inherited] |
Filter a portion of a pixel array using color boundaries. The result is put in another pixel array.
minColor | lower pixel value boundary | |
maxColor | upper pixel value boundary | |
rect | portion of the pixel array to process | |
dest | [out] destination pixel array |
Extract maxima from a portion of a pixel array.
mask | portion of the pixel array to process | |
channel | channel of the pixel array to process | |
point | location of maxima in image |
Extract minima from a portion of a pixel array.
mask | portion of the pixel array to process | |
channel | channel of the pixel array to process | |
point | location of minima in image |
Retrieve the color of a given pixel.
point | point in the pixel array to retrieve | |
color | [out] color object with expected color and format |
int tlPixelArray::getColor | ( | int | x, | |
int | y, | |||
tlColor * | color | |||
) | [inherited] |
Retrieve the color of a given pixel.
x | X coord of the pixel to retrieve | |
y | Y coord of the pixel to retrieve | |
color | [out] color object with expected color and format |
Extract color maxima/minima from a pixel array. The color objects are set to the same format as the input pixel array.
minColor | [out] lower color boundary | |
maxColor | [out] upper color boundary |
Extract color maxima/minima from a portion of a pixel array. The color objects are set to the same format as the input pixel array.
rect | portion of the pixel array to process | |
minColor | [out] lower color boundary | |
maxColor | [out] upper color boundary |
int tlPixelArray::getColorMin | ( | tlColor * | minColor | ) | [inherited] |
Extract color minima from a pixel array. The color object is set to the same format as the input pixel array.
minColor | [out] lower color boundary |
Extract color minima from a portion of a pixel array. The color object is set to the same format as the input pixel array.
rect | portion of the pixel array to process | |
minColor | [out] lower color boundary |
int tlPixelArray::getColorMax | ( | tlColor * | maxColor | ) | [inherited] |
Extract color maxima from a pixel array. The color object is set to the same format as the input pixel array.
maxColor | [out] upper color boundary |
Extract color maxima from a portion of a pixel array. The color object is set to the same format as the input pixel array.
rect | portion of the pixel array to process | |
maxColor | [out] upper color boundary |
int tlPixelArray::find | ( | tlObject * | object, | |
int | confidence, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find an object in an image given a minimum confidence threshold. This call updates the object argument.
object | [out] object to find | |
confidence | min match threshold [%] | |
increment | correlation increment |
int tlPixelArray::find | ( | tlObject * | object, | |
int | confidence, | |||
tlRect * | rect, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find an object in a portion of an image given a minimum confidence threshold. This call updates the object argument.
object | [out] object to find | |
confidence | min match threshold [%] | |
rect | portion of the image to process | |
increment | correlation increment |
int tlPixelArray::find | ( | tlMask * | shape, | |
int | confidence, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find an object shape in an image given a minimum confidence threshold. This call updates the shape argument.
shape | shape to find | |
confidence | min match threshold [%] | |
increment | correlation increment |
int tlPixelArray::find | ( | tlMask * | shape, | |
int | confidence, | |||
tlRect * | rect, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find an object shape in a portion of an image given a minimum confidence threshold. This call updates the shape argument.
shape | shape to find | |
confidence | min match threshold [%] | |
rect | portion of the image to process | |
increment | correlation increment |
int tlPixelArray::findBest | ( | tlObject * | object, | |
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find the best match for an object in the image. This call updates the object argument.
object | [out] object to find | |
increment | correlation increment |
int tlPixelArray::findBest | ( | tlObject * | object, | |
tlRect * | rect, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find the best match for an object in a portion of the image. This call updates the object argument.
object | [out] object to find | |
rect | portion of the image to process | |
increment | correlation increment |
int tlPixelArray::findBest | ( | tlMask * | shape, | |
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find the best match for an object shape in the image. This call updates the shape argument.
shape | shape to find | |
increment | correlation increment |
int tlPixelArray::findBest | ( | tlMask * | shape, | |
tlRect * | rect, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find the best match for an object shape in a portion of the image. This call updates the shape argument.
shape | shape to find | |
rect | portion of the image to process | |
increment | correlation increment |
int tlPixelArray::findShape | ( | tlObject * | object, | |
int | confidence, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find an object shape in an image given a minimum confidence threshold. This call updates the shape argument.
object | shape to find | |
confidence | min match threshold [%] | |
increment | correlation increment |
int tlPixelArray::findShape | ( | tlObject * | object, | |
int | confidence, | |||
tlRect * | rect, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find an object shape in a portion of an image given a minimum confidence threshold. This call updates the shape argument.
object | shape to find | |
confidence | min match threshold [%] | |
rect | portion of the image to process | |
increment | correlation increment |
int tlPixelArray::findBestShape | ( | tlObject * | object, | |
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find the best match for an object shape in the image. This call updates the shape argument.
object | shape to find | |
increment | correlation increment |
int tlPixelArray::findBestShape | ( | tlObject * | object, | |
tlRect * | rect, | |||
int | increment = TL_DEFAULT_INCREMENT | |||
) | [inherited] |
Find the best match for an object shape in a portion of the image. This call updates the shape argument.
object | shape to find | |
rect | portion of the image to process | |
increment | correlation increment |
int tlPixelArray::buildHist | ( | tlHist * | hist, | |
tlMask * | mask, | |||
tlRect * | rect, | |||
int | channel = 0 | |||
) | [inherited] |
Build a histogram of a given channel for a portion of a pixel array.
mask | pixel array mask (do not consider inactive pixels) | |
rect | portion of the pixel array to consider | |
channel | channel to extract | |
hist | [out] the resulting histogram |
int tlPixelArray::buildHist | ( | tlHist2D * | hist, | |
tlMask * | mask, | |||
tlRect * | rect, | |||
int | xchannel = 0 , |
|||
int | ychannel = 1 | |||
) | [inherited] |
Build a 2D histogram of two given channels from a portion of a pixel array.
mask | pixel array mask (do not consider inactive pixels) | |
rect | portion of the pixel array to consider | |
xchannel | channel to extract | |
ychannel | channel to extract | |
hist | [out] a valid pointer to the resulting histogram |
int tlRect::set | ( | int | x, | |
int | y, | |||
int | width, | |||
int | height | |||
) | [inherited] |
Set rectangle member values.
x | rectangle upper-left corner x position [pix] | |
y | rectangle upper-left corner y position [pix] | |
width | rectangle width [pix] | |
height | rectangle height [pix] |
int tlRect::collapse | ( | int | dsize | ) | [inherited] |
Evenly shrinks the rectangle around its center.
dsize | width/height decrease [pix] |
int tlRect::expand | ( | int | dsize | ) | [inherited] |
Evenly expands the rectangle around its center
dsize | width/height decrease [pix] |
int tlRect::intersect | ( | tlRect * | rect | ) | [inherited] |
Check if a given rectangle intesects with the current object.
rect | the rectangle to check for intersection |
int tlSize::setSize | ( | int | width, | |
int | height, | |||
int | depth = 255 | |||
) | [inherited] |
Set the size object parameters.
width | object width | |
height | object height | |
depth | object disparity range size |
int tlLocation::setLocation | ( | int | x, | |
int | y, | |||
int | disp = 0 | |||
) | [inherited] |
Set the location object parameters.
x | x location of the object [pix] | |
y | y location of the object [pix] | |
disp | disparity of the object [disp] |
int tlLocation::setLocation | ( | tlPoint * | point | ) | [inherited] |
Set the location object parameters.
point | tlPoint object |
int tlLocation::shift | ( | int | dx, | |
int | dy, | |||
int | ddisp = 0 | |||
) | [inherited] |
Shift the object location.
dx | shift along x axis [pix] | |
dy | shift along y axis [pix] | |
ddisp | disparity shift [disp] |
int tlLocation::setWorldLocation | ( | float | wx, | |
float | wy, | |||
float | wz | |||
) | [inherited] |
Set the world location object parameters.
wx | world X location | |
wy | world Y location | |
wz | world Z location |
tlLocation * tlLocation::toLocation | ( | ) | [inherited] |
Get a copy of the location of the object.
int tlLocation::toLocation | ( | tlLocation * | location | ) | [inherited] |
Get the location of the object.
location | [out] tlLocation object that will receive the data |
int tlMask::cx |
X position of the mask reference point relatively to the upper left corner.
int tlMask::cy |
Y position of the mask reference point relatively to the upper left corner.
int tlMask::area |
Number of active pixels in the mask.
int tlPixelArray::format [inherited] |
Image format (see tl_format for more information).
long tlPixelArray::timeStamp [inherited] |
Time at which the pixel array was updated (from a hardware digitizer).
int * tlPixelArray::pixelWidth [inherited] |
The number of bytes per pixel (depends on the image format).
tlPixel * tlPixelArray::pixel [inherited] |
Pointer to the pixel array. The array size is (width * height * pixelWidth) bytes.
int tlSize::width [inherited] |
width of the object inheriting from tlSize.
int tlSize::height [inherited] |
height of the object inheriting from tlSize.
int tlSize::depth [inherited] |
disparity range size of the object inheriting from tlSize.
int tlLocation::x [inherited] |
X location of the object [pix].
int tlLocation::y [inherited] |
Y location of the object [pix].
int tlLocation::disp [inherited] |
Disparity of the object [disp].
int tlLocation::wx [inherited] |
X location of the object in real-world coordonates [m].
int tlLocation::wy [inherited] |
Y location of the object in real-world coordonates [m].
int tlLocation::wz [inherited] |
Z location of the object in real-world coordonates [m].