Filters an image using a Laplacian kernel.
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. |
The function ippiFilterLaplace is declared in the ippi.h file. It operates with ROI (see Regions of Interest in Intel IPP). This function applies a highpass Laplacian filter to an image ROI. The corresponding kernel is the matrix of either 3x3 or 5x5 size with the following values:
-1 -3 -4 -3 -1
-1 -1 -1 -3 0 6 0 -3
-1 8 -1 or -4 6 20 6 -4
-1 -1 -1 -3 0 6 0 -3
-1 -3 -4 -3 -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 helps locate zero crossings in an image.
To ensure valid operation when image boundary pixels are processed, the application should correctly define additional border pixels (see Borders).
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. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.