Perform quadrangular warp perspective transform
FwStatus | fwiWarpPerspectiveQuad_8u_C1R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw8u * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_8u_C3R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw8u * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_8u_C4R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw8u * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_8u_AC4R | ( | const Fw8u * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw8u * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_32f_C1R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw32f * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_32f_C3R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw32f * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_32f_C4R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw32f * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_32f_AC4R | ( | const Fw32f * pSrc, FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw32f * pDst, int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_8u_P3R | ( | const Fw8u * const pSrc[3], FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw8u * const pDst[3], int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_8u_P4R | ( | const Fw8u * const pSrc[4], FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw8u * const pDst[4], int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_32f_P3R | ( | const Fw32f* const pSrc[3], FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw32f* const pDst[3], int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); | |
FwStatus | fwiWarpPerspectiveQuad_32f_P4R | ( | const Fw32f* const pSrc[4], FwiSize srcSize, int srcStep, FwiRect srcRoi, const double srcQuad[4][2], Fw32f* const pDst[4], int dstStep, FwiRect dstRoi, const double dstQuad[4][2], int interpolation ); |
dstQuad[4][2] | Destination quadrangle vertex coordinates. | |
dstRoi | Destination image ROI. | |
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). | |
srcQuad[4][2] | Source quadrangle vertex coordinates. | |
srcRoi | Source image ROI. | |
srcSize | Source image size. | |
srcStep | Source buffer step size (width of the buffer in bytes). |
These functions step through a quadrangular source ROI, perform the warp perspective transform on the source data, and map the transformed data into a quadrangular destination ROI using a specified method of interpolation.
Edge smoothing interpolation is applicable only when the destination quadrangle is completely within the destination ROI.
The warp perspective coefficients are calculated using the quadrangle vertices. If the coefficients cannot be resolved consistently, the function returns errors.
The following interpolation modes are available.
FWI_INTER_NN: nearest neighbor interpolation FWI_INTER_LINEAR: linear interpolation FWI_INTER_CUBIC: cubic interpolation