FilterBorderGetSize
Computes the size of the filter specification structure and the size of the work buffer.
Syntax
IppStatus ippiFilterBorderGetSize (IppiSize
kernelSize
, IppiSize
dstRoiSize
, IppDataType
dataType
, IppDataType
kernelType
, int
numChannels
, int*
pSpecSize
, int*
pBufferSize
);
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
- kernelSize
- Size of the rectangular kernel in pixels.
- dstRoiSize
- Maximal size of the destination image ROI (in pixels).
- dataType
- Data type of the source image. Possible values areipp8u,ipp16u,ipp16s,ipp32f, oripp64f.
- kernelType
- Data type of the filter kernel. Possible values areipp16s,ipp32f, oripp64f.
- numChannels
- Number of channels in the image. Possible values are 1, 3, or 4.
- pSpecSize
- Pointer to the size of the filter specification structure.
- pBufferSize
- Pointer to the size of the work buffer required for filtering.
Description
This function operates with ROI.
This function computes the size of the filter specification structure
pSpec
and the size of the buffer required for filtering operations. Call this function before using the ippiFilterBorderInit
function.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsNullPtrErr
- Indicates an error when one of the specified pointers isNULL.
- ippStsSizeErr
- Indicates an error whenkernelSizehas a field with a zero or negative value, or ifdstRoiSizeis less than 1.
- ippStsDataTypeErr
- Indicates an error whendataTypeorkernelTypehas an illegal value.
- ippStsChannelErr
- Indicates an error whennumChannelshas an illegal value.