Specifications

User Defined Functions
13-3
13
UserFuncFP
The type of user-defined
functions that perform point
operations on a separate
channel value of a pixel (for
images with all data types).
The prototype specified by the callback function of type IplUserFuncFP
must be as follows:
typedef float (__STDCALL *IplUserFuncFP)(float
src
);
src
The source pixel channel value converted
to
float type.
Discussion
The user function defined with the above prototype must take the float
channel value
src
as input and return the computed destination pixel
channel value also as
float. To use the function for image processing, its
name must be passed to the calling function
iplUserProcessFP() 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 in case when the source and destination images contain
integer data.
The user function of type
IplUserFuncFP may call IPL_ERROR to set the
IPL error status.
See
iplUserProcessFP() for more information.