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

Unknown orientation of puzzle pieces #1

Open
superhero1 opened this issue Jan 12, 2019 · 1 comment
Open

Unknown orientation of puzzle pieces #1

superhero1 opened this issue Jan 12, 2019 · 1 comment

Comments

@superhero1
Copy link

@guansanghai I want to enhance your code to automatically rotate pieces for each iteration if their orientation is unknown, how can I do that?

@guansanghai
Copy link
Owner

For the linear programming based solver, the puzzles with unknown orientation is introduced in Section 3.5.1 of [1]. The authors update the algorithm just by adding a pre-process step. Specifically, they make 4 copies for each piece corresponding to 4 orientations. Then they select one piece, and fix the (x,y) coordinates of its 4 copies as an extra constraint of the LP problem. Hence the solution is 4 pictures with different orientations. For my implementation, I think the post-processing step also requires some upgrades.

For the quadratic programming based solver, the authors of [2] listed this case as their future work. So, I think it is still a challenge for this solver.

[1] R. Yu, C. Russell, L. Agapito, "Solving Jigsaw puzzles with linear programming"

[2] F. A. Andalo, G. Taubin, S. Goldenstein, "PSQP: Puzzle solving by quadratic programming," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 39, no. 2, pp. 385-396, 2017.

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

2 participants