FilterSobelVertGetBufferSize, FilterSobelNegVertGetBufferSize

Computes the size of the external buffer for the vertical Sobel filter with border.

Syntax

IppStatus ippiFilterSobelVertGetBufferSize_<mod>(IppiSize roiSize, IppiMaskSize mask, int* pBufferSize);

IppStatus ippiFilterSobelNegVertGetBufferSize_<mod>(IppiSize roiSize, IppiMaskSize mask, int* pBufferSize);

Supported values for mod:

8u8s_C1R 8u16s_C1R 32f_C1R

Parameters

roiSize

Maximum size of the source and destination image ROI.

mask

Predefined mask of IppiMaskSize type.

pBufferSize

Pointer to the buffer size.

Description

The functions ippiFilterSobelVertGetBufferSize and ippiFilterSobelNegVertGetBufferSize are declared in the ippcv.h file. These functions compute the size of the external buffer that is required for the filter functions ippiFilterSobelVertBorder, and ippiFilterSobelNegVertBorder respectively. The kernel of the filter is the matrix of either 3x3 or 5x5 size that is specified by the parameter mask (see Table “Types of the Fixed Filter Functions”). This buffer pBufferSize[0] can be used to filter an image whose width and height are equal to or less than corresponding fields of roiSize.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or a warning.

ippStsNullPtrErr

Indicates an error condition if pBufferSize is NULL.

ippStsSizeErr

Indicates an error condition if roiSize has a field with a zero or negative value.

ippStsMaskSizeErr

Indicates an error condition if mask has a wrong value.

Submit feedback on this help topic

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