Filter with median value in cross mask
MT
FwStatus | fwiFilterMedianCross_8u_C1R | ( | const Fw8u * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize dstRoiSize, FwiMaskSize maskSize ); | |
FwStatus | fwiFilterMedianCross_8u_C3R | ( | const Fw8u * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize dstRoiSize, FwiMaskSize maskSize ); | |
FwStatus | fwiFilterMedianCross_8u_AC4R | ( | const Fw8u * pSrc, int srcStep, Fw8u * pDst, int dstStep, FwiSize dstRoiSize, FwiMaskSize maskSize ); | |
FwStatus | fwiFilterMedianCross_16s_C1R | ( | const Fw16s * pSrc, int srcStep, Fw16s * pDst, int dstStep, FwiSize dstRoiSize, FwiMaskSize maskSize ); | |
FwStatus | fwiFilterMedianCross_16s_C3R | ( | const Fw16s * pSrc, int srcStep, Fw16s * pDst, int dstStep, FwiSize dstRoiSize, FwiMaskSize maskSize ); | |
FwStatus | fwiFilterMedianCross_16s_AC4R | ( | const Fw16s * pSrc, int srcStep, Fw16s * pDst, int dstStep, FwiSize dstRoiSize, FwiMaskSize maskSize ); |
dstRoiSize | Destination image ROI size. | |
dstStep | Destination buffer step size (width of the buffer in bytes). | |
maskSize | Specifies the size of a mask used in calculations. | |
pDst | Pointer to a location in a destination buffer. | |
pSrc | Pointer to a location in a source buffer. | |
srcStep | Source buffer step size (width of the buffer in bytes). |
These functions step through an ROI in a source buffer, replace each source pixel value with the median value of all pixels in the area defined by the cross mask, and write the filtered data to a destination buffer.
The functions remove noise without decreasing image brightness, as averaging filters do.
The functions can use arbitrary cross mask sizes.