Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

FilterMedianCross

Filters an image using a cross median filter.

Syntax

IppStatus ippiFilterMedianCross_<mod>(const Ipp<datatype>*
pSrc
, int
srcStep
, Ipp<datatype>*
pDst
, int
dstStep
, IppiSize
dstRoiSize
, IppiMaskSize
mask
);
Supported values for
mod
:
8u_C1R
16u_C1R
16s_C1R
8u_C3R
16u_C3R
16s_C3R
8u_AC4R
16u_AC4R
16s_AC4R
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
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 the
IppiMaskSize
type.
Description
This function operates with ROI (see Regions of Interest in Intel IPP).
This function sets each pixel in the output buffer as the median value of all the input pixel values taken in the neighborhood of the processed pixel. The neighborhood is determined by the square mask of the predefined size, which can be either
ippMskSize3x3
or
ippMskSize5x5
(see Table
“Median Filter Mask, Neighborhood, and Anchor Cell”
). The function operates on the assumption that the pixels outside the source image ROI exist along the distance equal to half of the mask size. It means that the application program should provide appropriate values for the
pSrc
and
dstRoiSize
arguments, or define additional border pixels (see Borders in Neighborhood Operations). The size of the source image ROI is equal to the size of the destination image ROI
dstRoiSize
.
Return Values
ippStsNoErr
Indicates no error. Any other value indicates an error or a warning.
ippStsNullPtrErr
Indicates an error if
pSrc
or
pDst
is
NULL
.
ippStsSizeErr
Indicates an error if
dstRoiSize
has a field with a zero or negative value.
ippStsStepErr
Indicates an error if
srcStep
or
dstStep
has a zero or negative value.
ippStsMaskSizeErr
Indicates an error if
mask
has an illegal value.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804