Skip to content

Reduce rounding error on coordinates in transform#119

Open
mortenwehlast wants to merge 1 commit into
nkolot:masterfrom
mortenwehlast:patch-2
Open

Reduce rounding error on coordinates in transform#119
mortenwehlast wants to merge 1 commit into
nkolot:masterfrom
mortenwehlast:patch-2

Conversation

@mortenwehlast
Copy link
Copy Markdown

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