#include "tlVision.h"
Go to the source code of this file.
Functions | |
tlPixel * | tl_create_array (int width, int height, int pixel_width) |
tlPixel * | tl_copy_array (tlPixel *src, int width, int height, int pixel_width) |
tlPixel * | tl_copy_array (tlPixel *src, int width, int height, int pixel_width, tlRect *rect) |
tlPixel * | tl_copy_subarray (tlPixel *src, int width, int height, int pixel_width, tlRect *subRect) |
tlHRPixel * | tl_create_hrarray (int width, int height, int pixel_width) |
tlHRPixel * | tl_copy_hrarray (tlHRPixel *src, int width, int height, int pixel_width) |
tlHRPixel * | tl_copy_hrarray (tlHRPixel *src, int width, int height, int pixel_width, tlRect *rect) |
tlHRPixel * | tl_copy_hrsubarray (tlHRPixel *src, int width, int height, int pixel_width, tlRect *subRect) |
Create a copy of a portion of a given array containing an image; new (copied) array has the same size as the original.
src | source array | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | byte per pixel | |
rect | portion of the image to copy |
References tlSize::height, tl_copy_array(), TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Create a copy of a given array containing an image.
src | source array | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | byte per pixel |
References tl_copy_array(), TL_ERRNO_MSG, and TL_ERROR_ALLOCATION_FAILED.
Referenced by tlPixelArray::addChannel(), tlImage::borderBlack(), tlImage::borderMirror(), tlPixelArray::convolution(), tlPixelArray::copy(), tlObject::copy(), tlImage::crop(), tlPixelArray::dilate(), tlImage::edges(), tlImage::edgesHor(), tlImage::edgesVert(), tlPixelArray::erode(), tlPixelArray::remChannel(), tlImage::rotateLeft(), tlImage::rotateRight(), tlPixelArray::swapChannels(), tlPixelArray::thin(), tl_copy_array(), tlPixelArray::tlPixelArray(), tlPixelArray::toBin(), tlPixelArray::toChannel(), tlPixelArray::toGray(), tlPixelArray::toHsi(), tlPixelArray::toNrg(), tlPixelArray::toRgb(), and tlPixelArray::toYuv().
tlHRPixel* tl_copy_hrarray | ( | tlHRPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
tlRect * | rect | |||
) |
Create a copy of a portion of a given high-resolution array containing an image; new (copied) array has the same size as the original.
src | source array | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | channels per pixel | |
rect | portion of the image to copy |
References tlSize::height, tl_copy_hrarray(), TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
tlHRPixel* tl_copy_hrarray | ( | tlHRPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width | |||
) |
Create a copy of a given high-resolution array containing an image.
src | source array | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | channel per pixel |
References tl_copy_hrarray(), TL_ERRNO_MSG, and TL_ERROR_ALLOCATION_FAILED.
Referenced by tlPixelArray::copy(), tl_copy_hrarray(), tlPixelArray::toBin(), and tlPixelArray::toGray().
tlHRPixel* tl_copy_hrsubarray | ( | tlHRPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
tlRect * | rect | |||
) |
Create a copy of a portion of a given high-resolution array containing an image; new (copied) array has the same size as the portion of the image to duplicate.
src | source array | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | byte per pixel | |
rect | portion of the image to copy |
References tlSize::height, tl_copy_hrsubarray(), TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tl_copy_hrsubarray().
Create a copy of a portion of a given array containing an image; new (copied) array has the same size as the portion of the image to duplicate.
src | source array | |
width | image width [pix] | |
height | image height [pix] | |
pixel_width | byte per pixel | |
rect | portion of the image to copy |
References tlSize::height, tl_copy_subarray(), TL_MAX, TL_MIN, TL_PIXEL, tlSize::width, tlLocation::x, and tlLocation::y.
Referenced by tlObject::define(), and tl_copy_subarray().
tlPixel* tl_create_array | ( | int | width, | |
int | height, | |||
int | pixel_width | |||
) |
Allocate a new pixel array.
width | image width [pix] | |
height | image height [pix] | |
pixel_width | byte per pixel |
References tl_create_array().
Referenced by tlMask::adjust(), tlCameraTSAI::dewarp(), tlImage::edges(), tlPixelArray::mask(), tlPixelArray::median(), tlMask::minimize(), tl_create_array(), tl_hsi2yuv(), tl_read_bmp(), tl_read_jpg(), tl_scale_bspline(), and tl_yuv2hsi().
tlHRPixel* tl_create_hrarray | ( | int | width, | |
int | height, | |||
int | pixel_width | |||
) |
Allocate a new high-resolution pixel array.
width | image width [pix] | |
height | image height [pix] | |
pixel_width | byte per pixel |
References tl_create_hrarray().
Referenced by tlPixelArray::mask(), and tl_create_hrarray().