Specifications

Intel
®
Image Processing Library Reference Manual
13-4
13
UserFuncPixel
The type of user-defined
functions that perform point
operations simultaneously on
all channel values of a pixel
in an image.
The prototype specified by the callback function of type
IplUserFuncPixel must be as follows:
typedef void (__STDCALL *IplUserFuncPixel)(IplImage*
srcImage
, void*
srcPixel
, IplImage*
dstImage
, void*
dstPixel
);
srcImage
The source image header (used by the
function to determine the source image
depth and number of channels).
dstImage
The destination image header (used by the
function to determine the destination image
depth and number of channels).
srcPixel
Pointer to the array of channel values of the
source pixel.
dstPixel
Pointer to the array of channel values of the
destination pixel.
Discussion
Function of the type IplUserFuncPixel performs user-defined point
operations on a source image pixel by processing all channel values of a
given pixel simultaneously. The
srcPixel
and
dstPixel
pointers must
be converted by the user function to arrays of source and destination
channel values that have respective bit depths.
To use the function for image processing, its name must be passed to the
calling function
iplUserProcessPixel() as the last parameter in the
arguments list.