Homography.js icon indicating copy to clipboard operation
Homography.js copied to clipboard

Distortion when dstPoints have no points with x=0

Open lazydogP opened this issue 1 year ago • 0 comments

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 xs 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:

distortion

lazydogP avatar Jan 30 '24 09:01 lazydogP