SADGetBufferSize
Computes the size of the work buffer for the
ippiSAD
function.Syntax
IppStatus ippiSADGetBufferSize(IppiSize
srcRoiSize
, IppiSize
tplRoiSize
, IppDataType
dataType
, int
numChannels
, IppiROIShape
shape
, int*
pBufferSize
);
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
- srcRoiSize
- Size of the source ROI in pixels.
- tplRoiSize
- Size of the template ROI in pixels.
- shape
- Enumeration that defines the shape of the result of the SAD operation (see Structures and Enumerators).
- dataType
- Type of the input data.
- numChannels
- Number of channels in the images.
- pBufferSize
- Pointer to the computed value of the external buffer size.
Description
The
ippiSADGetBufferSize
function computes the size of the external work buffer (in bytes) needed for the ippiSAD
function and stores the result in the *pBufferSize
parameter.Return Values
- ippStsNoErr
- Indicates no error. Any other value indicates an error or a warning.
- ippStsNullPtrErr
- Indicates an error condition if thepBufferSizepointer isNULL.
- ippStsSizeErr
- Indicates an error condition ifsrcRoiSizeortplRoiSizehas a field with a zero or negative value.
- ippStsNotSupportedModeErr
- Indicates an error condition if eithershapedoes not equalippiROIValidornumChannelsdoes not equal 1.