Filter32f

Filter integer values with a floating-point rectangular kernel

Supported Technologies

MT, SSE2

Synopsis

FwStatus   fwiFilter32f_8u_C1R ( const Fw8u * pSrcint srcStepFw8u * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );
FwStatus   fwiFilter32f_8u_C3R ( const Fw8u * pSrcint srcStepFw8u * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );
FwStatus   fwiFilter32f_8u_C4R ( const Fw8u * pSrcint srcStepFw8u * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );
FwStatus   fwiFilter32f_8u_AC4R ( const Fw8u * pSrcint srcStepFw8u * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );
FwStatus   fwiFilter32f_16s_C1R ( const Fw16s * pSrcint srcStepFw16s * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );
FwStatus   fwiFilter32f_16s_C3R ( const Fw16s * pSrcint srcStepFw16s * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );
FwStatus   fwiFilter32f_16s_C4R ( const Fw16s * pSrcint srcStepFw16s * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );
FwStatus   fwiFilter32f_16s_AC4R ( const Fw16s * pSrcint srcStepFw16s * pDstint dstStepFwiSize dstRoiSizeconst Fw32f * pKernelFwiSize kernelSizeFwiPoint anchor );

Parameters

anchor   A pixel locating the kernel (mask) according to source image.
dstRoiSize   Destination image ROI size.
dstStep   Destination buffer step size (width of the buffer in bytes).
kernelSize   Specifies the size of the kernel used in calculations.
pDst   Pointer to a location in a destination buffer.
pKernel   Pointer to the kernel array.
pSrc   Pointer to a location in a source buffer.
srcStep   Source buffer step size (width of the buffer in bytes).

Description

These functions step through an ROI in a source buffer, and calculate the sum of products of the kernel values and the corresponding pixel values in an area defined by the kernel size and anchor coordinate.

The filtered data is written to a destination buffer.

The kernel is an array of 32-bit single-precision floating point values; the anchor coordinate location is relative to the bottom right corner of the kernel.