Computes the size of the buffer for the bilateral filter.
IppStatus ippiFilterBilateralGetBufSize_8u_C1R(IppiFilterBilateralType filter, IppiSize maxDstRoiSize, IppiSize maxKernelSize, int* pBufferSize);
filter |
Type of the bilateral filter; possible value ippiFilterBilateralGauss - Gaussian bilateral filter. |
maxDstRoiSize |
Maximum size of the destination image ROI. |
maxKernelSize |
Maximum size of the filter kernel. |
pBufferSize |
Pointer to the computed size of the buffer. |
The function ippiFilterBilateralGetBufSize is declared in the ippi.h file. It operates with ROI (see Regions of Interest in Intel IPP). This function computes the size of the working buffer for the bilateral filter of the filter type that is used by the function ippiFilterBilateralInit.
The both dimensions of the filter kernel should be odd; if some of them size is even, the function changes its value to the nearest less odd number.
Example “Using Bilateral Filtering Functions” shows how to use the function ippiFilterBilateralGetBufSize.
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsNullPtrErr |
Indicates an error condition if the pointer pBufferSize is NULL. |
ippStsSizeErr |
Indicates an error condition if maxDstRoiSize has a field with a zero or negative value. |
ippStsMaskSizeErr |
Indicates an error condition if maxKernelSize has a field with a zero or negative value. |
ippStsNotSupportedModeErr |
Indicates an error condition if the type of the specified bilateral filter is not supported. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.