FilterSobelVert, FilterSobelVertMask

Filters an image using a vertical Sobel kernel.

Syntax

IppStatus ippiFilterSobelVert_<mod>(const Ipp<datatype>* pSrc, int srcStep, Ipp<datatype>* pDst, int dstStep, IppiSize dstRoiSize);

Supported values for mod:

8u_C1R 16s_C1R 32f_C1R
8u_C3R 16s_C3R 32f_C3R
8u_C4R 16s_C4R 32f_C4R
8u_AC4R 16s_AC4R 32f_AC4R

IppStatus ippiFilterSobelVert_<mod>(const Ipp<srcDatatype>* pSrc, int srcStep, Ipp<dstDatatype>* pDst, int dstStep, IppiSize dstRoiSize, IppiMaskSize mask);

Supported values for mod:

8u16s_C1R 8s16s_C1R

IppStatus ippiFilterSobelVertMask_32f_C1R(const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep, IppiSize dstRoiSize, IppiMaskSize mask);

Parameters

pSrc

Pointer to the source image ROI.

srcStep

Distance in bytes between starts of consecutive lines in the source image.

pDst

Pointer to the destination image ROI.

dstStep

Distance in bytes between starts of consecutive lines in the destination image.

dstRoiSize

Size of the source and destination ROI in pixels.

mask

Predefined mask of IppiMaskSize type.

Description

The functions ippiFilterSobelVert and ippiFilterSobelVertMask are declared in the ippi.h file. It operates with ROI (see Regions of Interest in Intel IPP). These functions apply a verticall Sobel operator to an image ROI. The appropriate kernel is the matrix of 3x3 size, or either 3x3 or 5x5 size in accordance with the mask parameter of the corresponding function flavors. The kernels have the following values:

-1 -2 0 2 1
-1 0 1 -4 -8 0 8 4
-2 0 2 or -6 -12 0 12 6
-1 0 1 -4 -8 0 8 4
-1 -2 0 2 1

The anchor cell is the center cell of the kernel (red). The size of the source image ROI is equal to dstRoiSize, the size of the destination image ROI.

This filter has the effect of both enhancing and smoothing vertical edges of an image. To ensure valid operation when image boundary pixels are processed, the application should correctly define additional border pixels (see Borders).

Return Values

ippStsNoErr

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

ippStsNullPtrErr

Indicates an error condition if pSrc or pDst is NULL.

ippStsSizeErr

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

ippStsStepErr

Indicates an error condition if srcStep or dstStep has a zero or negative value.

ippStsMaskSizeErr

Indicates an error condition if mask has an illegal value.

Submit feedback on this help topic

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