Homography.js
Homography.js copied to clipboard
Distortion when dstPoints have no points with x=0
When I performed Piecewise Affine Transform with this library, I encountered the problem when dstPoints
are in open interval (0,1) (more specially, none of the x
s are 0) the output image is distorted.
By changing dstPoints of test2 in file test.js
to something like:
const dstPoints = [[1/5, 1/5], [1/5, 1/2], [1, 0], [1*6/8, 1*6/8]];
it gives the following result: