#include "tlVision.h"
Go to the source code of this file.
Defines | |
#define | TL_MAX_CHANNEL 10 |
Functions | |
int | tl_to_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_channel_put (tlPixel *src, int width, int height, int pixel_width, int channel, tlPixel *mask, tlRect *rect, tlPixel *dest) |
int | tl_channel_swap (tlPixel *src, int width, int height, int pixel_width, int channel1, int channel2, tlRect *rect, tlPixel *dest) |
#define TL_MAX_CHANNEL 10 |
int tl_channel_put | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
int | channel, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
Fill a given channel of a pixel array with another channel contained in another pixel array.
src | pixel array containing source image | |
width | image width | |
height | image height | |
pixel_width | destination image bytes per pixel | |
channel | channel to put data into | |
mask | conversion mask (only fills active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
int tl_channel_swap | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
int | channel1, | |||
int | channel2, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
Swap channels in a pixel array
src | pixel array containing source image | |
width | image width | |
height | image height | |
pixel_width | destination image bytes per pixel | |
channel1 | channel to swap | |
channel2 | channel to swap | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |
int tl_to_channel | ( | tlPixel * | src, | |
int | width, | |||
int | height, | |||
int | pixel_width, | |||
int | channel, | |||
tlPixel * | mask, | |||
tlRect * | rect, | |||
tlPixel * | dest | |||
) |
Extract a channel from an image. The result is placed in a pixel array.
src | pixel array containing source image | |
width | image width | |
height | image height | |
pixel_width | bytes per pixel | |
channel | channel to extract | |
mask | conversion mask (only converts active pixels) | |
rect | portion of the image to process | |
dest | [out] pixel array containing the converted image |