GetBilinearTransform

Get the bilinear transform coefficients

Synopsis

FwStatus   fwiGetBilinearTransform ( FwiRect srcRoiconst double quad[4][2]double coeffs[2][4] );

Parameters

coeffs[2][4]   Coefficients for Warp Affine Bilinear transform.
quad[4][2]   Quadrangle vertex coordinates.
srcRoi   Source image ROI.

Description

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.