GradientVectorGetBufferSize
Computes the size of the work buffer for the
ippiGradientVector{Sobel|Scharr|Prewitt}
functions.Syntax
IppStatus ippiGradientVectorGetBufferSize (IppiSize
roiSize
, IppiMaskSize
mask
, IppDataType
dataType
, int
numChannels
, int*
pBufferSize
);
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
- roiSize
- Size of the destination ROI in pixels.
- mask
- Predefined mask ofIppiMaskSizetype.
- dataType
- Data type of the source image.
- numChannels
- Number of channels in the image.
- pBufferSize
- Pointer to the computed size of the external work buffer.
Description
The
ippiGradientVectorGetBufferSize
function computes the size (in bytes) of the external work buffer needed for the ippiGradientVector{Sobel|Scharr|Prewitt}
functions and stores the result in the pBufferSize
parameter.Return Values
- ippStsNoErr
- Indicates no error.
- ippStsNullPtrErr
- Indicates an error whenpBufferSizeis NULL.
- ippStsSizeErr
- Indicates an error when one of the fields ofroiSizehas a zero or negative value.
- ippStsMaskSizeErr
- Indicates an error whenmaskhas an illegal value.
- ippStsDataTypeErr
- Indicates an error whendataTypehas an illegal value.
- ippStsNumChannelsErr
- Indicates an error whennumChannelshas an illegal value.