FilterBilateralGetBufSize

Computes the size of the buffer for the bilateral filter.

Syntax

IppStatus ippiFilterBilateralGetBufSize_8u_C1R(IppiFilterBilateralType filter, IppiSize maxDstRoiSize, IppiSize maxKernelSize, int* pBufferSize);

Parameters

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.

Description

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.

Return Values

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.

Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.