POLYNOMIALTRANSFORM2D Apply a polynomial transform to a set of points.
RES = polynomialTransform2d(PTS, COEFFS)
Transforms the input points PTS given as a N-by-2 array of coordinates
using the polynomial transform defined by PARAMS.
PARAMS given as [a0 b0 a1 b1 ... an bn]
Example
coeffs = [0 0 1 0 0 1 0.1 0 0 0 0 0.1];
% cte x y x^2 x*y y^2
pts = rand(200, 2) * 2 - 1;
pts2 = polynomialTransform2d(pts, coeffs);
figure; hold on;
drawPoint(pts);
drawPoint(pts2, 'g');
See also
transformPoint, fitPolynomialTransform2d
Package: matgeom