Specifications

Intel
®
Image Processing Library Reference Manual
13-6
13
data. To perform saturation of 32-bit integer data, use
iplUserProcessFP() function instead.
The function
iplUserProcess() supports tiled images and images with
rectangle ROI and mask ROI. The operations can be performed in-place.
The source and destination images must contain data of the same bit depth
and have the same number of processed channels.
Example 13-1 Image Channel Values Processing by User Defined Function
static int __STDCALL bw( int src ) {
if( src < 127 ) return 0;
return 255;
}
void UserFunc( void ) {
IplImage *imga = iplCreateImageJaehne( IPL_DEPTH_8U,
16,5);
IplImage *imgb = iplCloneImage( imga );
iplUserProcess( imga, imgb, bw );
iplDeallocate( imga, IPL_IMAGE_ALL );
iplDeallocate( imgb, IPL_IMAGE_ALL );
}