Descriptors
Intel® IPP Image processing function naming conventions are same as other Intel IPP APIs. In general Intel IPP image processing naming convention can be described as below.
ippiBasename[_modifiers]_types[_descriptors]
This table explains the descriptor codes used for Intel IPP functions with prefix ippi.
|
Code |
Description |
Example |
|
|
The images have 4 channels, the fourth of which is the alpha channel. When identified in this way, the alpha channel will be excluded from the operation. |
|
|
|
The images have 1,3 or 4 channels of data interleaved in memory. C1, indicating one channel, can also be used for multiple images in most cases. |
|
|
|
The images have interleaved cannels in memory. This is a special case, in which frequently the second "channel" is itself two interleaved, subsampled channels. The sizes and other arguments, though, are based on a 2-channel image. |
|
|
|
The operation is performed in place. The result of the operation is written back into the source, and one argument is both a source and a destination. |
|
|
|
The operation uses a mask to determine which pixels on which to operate. |
|
|
|
The images have 3 or 4 channels of data arranged in separate planes; the operation takes an array of pointers to image planes. |
|
|
|
The function operates on a defined Rectangle of Interest (ROI) for each of the input images. Most image processing functions have this descriptor and use ROI |
|
|
Sfs |
The function scales the result of the operation, shifting it right by the scaleFactor argument. This shift generally takes place at a higher bit resolution to preserve precision. |
ipiAddC_8u_AC4Sfs |
Please take care of the C1, C3, AC4, C2, P3 descriptors, especially in image format conversion (Color Conversion)
Parameters
A general template for the prototype of the image processing function looks like this:
IppStatus ippiBaseName_<mod>(const Ipp<datatype>* pSrc, int srcStep, ippiRect srcRoi,
Ipp<datatype>* pDst, int dstStep, IppiSize roiSize, other paramters);
|
Parameter |
Description |
Explanation and Example |
|
|
Pointer to the source image ROI |
1. pSrc != pDst (default) |
|
|
Distance in bytes between starts of consecutive lines in the image. More often, it is image width in bytes. But the value depends on the image data layout and data type. |
step != imgROI.width*Channal*sizeof(datatype) |
|
|
Size of the source and destination ROI in pixels. Declared in the ippdefs.h file typedef struct { int width; int height; } IppiSize; |
More often roiSize={imgWidth, imgHeight} |
|
|
Region of interest in the source image |
More often roiSize={0, 0 imgWidth, imgHeight} |
To know more about usage of these functions, refer to Image and Video processing manual(Volume 2) - /en-us/
