Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distortion when dstPoints have no points with x=0 #8

Open
lazydogP opened this issue Jan 30, 2024 · 0 comments
Open

Distortion when dstPoints have no points with x=0 #8

lazydogP opened this issue Jan 30, 2024 · 0 comments

Comments

@lazydogP
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant