TLIB documentation
 

tlPixel.h File Reference


Detailed Description

Internal pixel manipulation operators.

#include "tlVision.h"

Include dependency graph for tlPixel.h:

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

Go to the source code of this file.

Functions

int tl_pixel_add (tlPixel *src, tlPixel *operand, int width, int height, int pixel_width, tlRect *rect, tlPixel *dest)
int tl_pixel_sub (tlPixel *src, tlPixel *operand, int width, int height, int pixel_width, tlRect *rect, tlPixel *dest)
int tl_pixel_scale (tlPixel *src, float factor, int width, int height, int pixel_width, tlRect *rect, tlPixel *dest)
int tl_pixel_hradd (tlHRPixel *src, tlHRPixel *operand, int width, int height, int pixel_width, tlRect *rect, tlHRPixel *dest)
int tl_pixel_hrsub (tlHRPixel *src, tlHRPixel *operand, int width, int height, int pixel_width, tlRect *rect, tlHRPixel *dest)
int tl_pixel_hrscale (tlHRPixel *src, float factor, int width, int height, int pixel_width, tlRect *rect, tlHRPixel *dest)


Function Documentation

int tl_pixel_add ( tlPixel src,
tlPixel operand,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlPixel dest 
)

Elementary pixel addition on pixel array.

Parameters:
src pixel array containing initial image
operand pixel array containing image to add
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the operation result
Returns:
0 on success, -1 otherwise.
See error management for details.

int tl_pixel_hradd ( tlHRPixel *  src,
tlHRPixel *  operand,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlHRPixel *  dest 
)

Elementary pixel addition on high-resolution pixel array.

Parameters:
src pixel array containing initial image
operand pixel array containing image to add
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the operation result
Returns:
0 on success, -1 otherwise.
See error management for details.

int tl_pixel_hrscale ( tlHRPixel *  src,
float  factor,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlHRPixel *  dest 
)

Elementary pixel scaling on high-resolution pixel array.

Parameters:
src pixel array containing initial image
factor scaling factor
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the operation result
Returns:
0 on success, -1 otherwise.
See error management for details.

int tl_pixel_hrsub ( tlHRPixel *  src,
tlHRPixel *  operand,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlHRPixel *  dest 
)

Elementary pixel subtraction on high-resolution pixel array.

Parameters:
src pixel array containing initial image
operand pixel array containing image to subtract
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the operation result
Returns:
0 on success, -1 otherwise.
See error management for details.

int tl_pixel_scale ( tlPixel src,
float  factor,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlPixel dest 
)

Elementary pixel scaling on pixel array.

Parameters:
src pixel array containing initial image
factor scaling factor
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the operation result
Returns:
0 on success, -1 otherwise.
See error management for details.

int tl_pixel_sub ( tlPixel src,
tlPixel operand,
int  width,
int  height,
int  pixel_width,
tlRect rect,
tlPixel dest 
)

Elementary pixel subtraction on pixel array.

Parameters:
src pixel array containing initial image
operand pixel array containing image to subtract
width image width
height image height
pixel_width pixel width
rect portion of the image to process
dest [out] pixel array containing the operation result
Returns:
0 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.