Get the bilinear transform coefficients
FwStatus | fwiGetBilinearTransform | ( | FwiRect srcRoi, const double quad[4][2], double coeffs[2][4] ); |
coeffs[2][4] | Coefficients for Warp Affine Bilinear transform. | |
quad[4][2] | Quadrangle vertex coordinates. | |
srcRoi | Source image ROI. |
This function computes bilinear transform coefficients for the WarpBilinearQuad functions.
Quad[0] corresponds to the top right coordinates of the source ROI
Quad[1] corresponds to the top left coordinates of the source ROI
Quad[2] corresponds to the bottom right coordinates of the source ROI
Quad[3] corresponds to the bottom left coordinates of the source ROI
The function returns fwstsCoeffErr if the mapping is incorrect.