Specifications

Intel
®
Image Processing Library Reference Manual
13-2
13
UserFunc
The type of user-defined
functions that perform point
operations on a separate
channel value of a pixel (for
images with integer data).
The prototype specified by the callback function of type IplUserFunc
must be as follows:
typedef int (__STDCALL *IplUserFunc)(int
src
);
src
The source pixel channel value converted
to
int type.
Discussion
The user function defined with the above prototype must take the channel
value
src
of type int as input and return the computed destination pixel
channel value also as
int type. To use the function for image processing,
its name must be passed to the calling function
iplUserProcess() as the
last parameter in the arguments list.
The saturation of the returned result to the destination data range is done by
the calling function.
The user function of type
IplUserFunc may call IPL_ERROR to set the
IPL error status.
See
iplUserProcess() for more information.