Developer Reference for Intel® Integrated Performance Primitives 2018
Computes bilinear transform coefficients to map the source ROI to the quadrangle with the specified vertex coordinates.
IppStatus ippiGetBilinearTransform(IppiRect srcRoi, const double quad[4][2], double coeffs[2][4]);
ippi.h
Headers: ippcore.h, ippvm.h, ipps.h
Libraries: ippcore.lib, ippvm.lib, ipps.lib
srcRoi |
Region of interest in the source image (of the IppiRect type). |
quad |
Vertex coordinates of the quadrangle, to which the source ROI is mapped by the bilinear transform function. |
coeffs |
Output array. Contains the target bilinear transform coefficients. |
This function operates with ROI (see ROI Processing in Geometric Transforms).
This function is used as a support function for ippiWarpBilinear. It computes the coefficientscoeffs of thebilinear transform that maps the source rectangular ROI to the quadrangle with the specified vertex coordinates quad.
The first dimension [4] of the array quad[4][2] is equal to the number of vertices, and the second dimension [2] means x and y coordinates of the vertex. Quadrangle vertices have the following meaning:
quad[0] corresponds to the transformed top-left corner of the source ROI,
quad[1] corresponds to the transformed top-right corner of the source ROI,
quad[2] corresponds to the transformed bottom-right corner of the source ROI,
quad[3] corresponds to the transformed bottom-left corner of the source ROI.
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsSizeErr |
Indicates an error condition if srcRoi has a size field with zero or negative value. |
ippStsCoeffErr |
Indicates an error condition if coefficient values are invalid. |
ippStsRectErr |
Indicates an error condition if width or height of the srcRoi is less than or equal to 1. |