CrossCorrNormGetBufferSize
Computes the size of the work buffer for the
ippiCrossCorrNorm
function.Syntax
IppStatus ippiCrossCorrNormGetBufferSize (IppiSize
srcRoiSize
, IppiSize
tplRoiSize
, IppEnum
algType
, int*
pBufferSize
);
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
- srcRoiSize,tplRoiSize
- Size of the source/template ROI in pixels.
- algType
- Bit-field mask for the algorithm type definition. Possible values are the results of composition of theIppAlgType,IppiROIShape, andIppiNormOpvalues.
- pBufferSize
- Pointer to the size of the work buffer.
Description
The
ippiCrossCorrNormGetBufferSize
function computes the size, in bytes, of the external work buffer needed for the function that performs two-dimensional cross-correlation. The result is stored in the pBufferSize
parameter.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsSizeErr
- Indicates an error when:
- srcRoiSizeortplRoiSizeis negative, or equal to zero
- the value ofsrcRoiSizeis less than the corresponding value oftplRoiSize.
- ippStsAlgTypeErr
- Indicates an error when:
- the result of the bitwise AND operation between thealgTypeandippAlgMaskdiffers from theippAlgAuto,ippAlgDirect, orippAlgFFTvalues.
- the result of the bitwise AND operation between thealgTypeandippiROIMaskdiffers from theippiROIFull,ippiROISame, orippiROIValidvalues.
- the result of the bitwise AND operation between thealgTypeandippiNormMaskdiffers from theippiNormNone,ippiNorm, orippiNormCoefficientvalues.
- ippStsNullPtrErr
- Indicates an error whenpBufferSizeis NULL.