Remap an image using table look-up
FwStatus | fwiRemap_8u_C1R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw8u * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_8u_C3R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw8u * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_8u_C4R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw8u * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_8u_AC4R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw8u * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_32f_C1R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw32f * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_32f_C3R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw32f * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_32f_C4R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw32f * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_32f_AC4R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw32f * pDst, int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_8u_P3R | ( | const Fw8u * const pSrc[3], FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw8u * const pDst[3], int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_8u_P4R | ( | const Fw8u * const pSrc[4], FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw8u * const pDst[4], int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_32f_P3R | ( | const Fw32f* const pSrc[3], FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw32f* const pDst[3], int dstStep, FwiSize dstRoiSize, int interpolation ); | |
FwStatus | fwiRemap_32f_P4R | ( | const Fw32f* const pSrc[4], FwiSize srcSize, int srcStep, FwiRect srcRoi, const Fw32f * pxMap, int xMapStep, const Fw32f * pyMap, int yMapStep, Fw32f* const pDst[4], int dstStep, FwiSize dstRoiSize, int interpolation ); |
dstRoiSize | Destination image ROI size. | |
dstStep | Destination buffer step size (width of the buffer in bytes). | |
interpolation | Specifies the method of interpolation. | |
pDst | Pointer to a location in a destination buffer. | |
pDst[3] | Pointer to a location in a three-channel planar destination buffer (array values point to a location in each plane). | |
pDst[4] | Pointer to a location in a four-channel planar destination buffer (array values point to a location in each plane). | |
pSrc | Pointer to a location in a source buffer. | |
pSrc[3] | Pointer to a location in a three-channel planar source buffer (array values point to a location in each plane). | |
pSrc[4] | Pointer to a location in a four-channel planar source buffer (array values point to a location in each plane). | |
pxMap | Pointer to X axis mapping table array. | |
pyMap | Pointer to Y axis mapping table array. | |
srcRoi | Source image ROI. | |
srcSize | Source image size. | |
srcStep | Source buffer step size (width of the buffer in bytes). | |
xMapStep | X axis mapping table step size (width of the buffer in bytes). | |
yMapStep | Y axis mapping table step size (width of the buffer in bytes). |
These functions step through an ROI in a source buffer, remap the source data using look-up tables for the x and y coordinates of each pixel and a specified method of interpolation, then write the data into a destination ROI.
The following mapping formula is used.
dst_pixel[x,y] = src_pixel[pxMap[x,y], pyMap[x,y]] Where: pxMap[x,y] is the x-coordinate look up table pyMap[x,y] is the y-coordinate look-up table
The following interpolation modes are available.
FWI_INTER_NN: nearest neighbor interpolation FWI_INTER_LINEAR: linear interpolation FWI_INTER_CUBIC: cubic interpolation