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

Reduce rounding error on coordinates in transform #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mortenwehlast
Copy link

Current implementation found to map 2D key points with error margin.
Testing e.g. found that the point (0, 0) is mapped to (3, 3).
Generally, absolute error falls in range [0; 3].
Proposed change reduces range to [0; 1].
Removing rounding + conversion to int eliminates error completely, but side effect on function "crop()" which uses "transform()" not tested. Hence, this solution appears more robust until testing on "crop()" is done.

Current implementation found to map 2D key points with error margin.
Testing e.g. found that the point (0, 0) is mapped to (3, 3).
Generally, absolute error falls in range [0; 3].
Proposed change reduces range to [0; 1].
Removing conversion to int eliminates error completely, but side effect on function "crop" which uses "transform" not tested.
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

Successfully merging this pull request may close these issues.

1 participant