Skip to content

Fix solve e40b9e2f#10

Open
AmziJeffs wants to merge 2 commits intomichaelhodel:mainfrom
AmziJeffs:fix-solve_e40b9e2f
Open

Fix solve e40b9e2f#10
AmziJeffs wants to merge 2 commits intomichaelhodel:mainfrom
AmziJeffs:fix-solve_e40b9e2f

Conversation

@AmziJeffs
Copy link
Copy Markdown
Contributor

Current solver has an error in line 3933 x10 = argmax(x9, x5). The code attempts to find the translate of maximum overlap with original object, but the function x5 simply computes the intersection, not the size of the intersection.

The second overlap computation in the solver is correct, using x14 = compose(size, x5) to find the argmax of size. The simplest fix is to just define x14 earlier, and use it in the first argmax instead of x5. My fix does this, and renames the variables sequentially.

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