Computes median values for each source vector element.
IppStatus ippsFilterMedian_8u(const Ipp8u* pSrc, Ipp8u* pDst, int len, int maskSize);
IppStatus ippsFilterMedian_16s(const Ipp16s* pSrc, Ipp16s* pDst, int len, int maskSize);
IppStatus ippsFilterMedian_32s(const Ipp32s* pSrc, Ipp32s* pDst, int len, int maskSize);
IppStatus ippsFilterMedian_32f(const Ipp32f* pSrc, Ipp32f* pDst, int len, int maskSize);
IppStatus ippsFilterMedian_64f(const Ipp64f* pSrc, Ipp64f* pDst, int len, int maskSize);
IppStatus ippsFilterMedian_8u_I(Ipp8u* pSrcDst, int len, int maskSize);
IppStatus ippsFilterMedian_16s_I(Ipp16s* pSrcDst, int len, int maskSize);
IppStatus ippsFilterMedian_32s_I(Ipp32s* pSrcDst, int len, int maskSize);
IppStatus ippsFilterMedian_32f_I(Ipp32f* pSrcDst, int len, int maskSize);
IppStatus ippsFilterMedian_64f_I(Ipp64f* pSrcDst, int len, int maskSize);
pSrcDst |
Pointer to the source and destination vector (for the in-place operation). |
pSrc |
Pointer to the source vector. |
pDst |
Pointer to the destination vector. |
len |
Number of elements in the vector. |
maskSize |
Median mask size, must be a positive integer. If an even value is specified, the function subtracts 1 and uses the odd value of the filter mask for median filtering. |
The function ippsFilterMedian is declared in the ipps.h file. This function computes median values for each element of the source vector pSrc or pSrcDst, and stores the result in pDst or pSrcDst, respectively.
The value of a non-existent point is equal to the last point value, for example: x[- 1]=x[0], or x[len] = x [len - 1].
The example below illustrates using ippsFilterMedian_16s_I for single-rate filtering.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when one of the pointers is NULL. |
ippStsSizeErr |
Indicates an error when len is less than or equal to 0. |
ippStsEvenMedianMaskSize |
Indicates a warning when the median mask length is even. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.