A Probabilistic Image Jigsaw Puzzle Solver

Presented at 2010 IEEE CVPR

Taeg Sang Cho1 Shai Avidan2,3William T. Freeman1

1 Massachusetts Institute of Technology

2 Tel Aviv University

3 Adobe Systems Inc.

Abstract

We explore the problem of reconstructing an image from a bag of square, non-overlapping image patches, the jigsaw puzzle problem. Completing jigsaw puzzles is challenging and requires expertise even for humans, and is known to be NP-complete. We depart from previous methods that treat the problem as a constraint satisfaction problem and develop a graphical model to solve it. Each patch location is a node and each patch is a label at nodes in the graph. A graphical model requires a pairwise compatibility term, which measures an affinity between two neighboring patches, and a local evidence term, which we lack. This paper discusses ways to obtain these terms for the jigsaw puzzle problem. We evaluate several patch compatibility metrics, including the natural image statistics measure, and experimentally show that the dissimilarity-based compatibility – measuring the sum-of-squared color difference along the abutting boundary – gives the best results. We compare two forms of local evidence for the graphical model: a sparse-and-accurate evidence and a dense-andnoisy evidence. We show that the sparse-and-accurate evidence, fixing as few as 4 − 6 patches at their correct locations, is enough to reconstruct images consisting of over 400 patches. To the best of our knowledge, this is the largest puzzle solved in the literature. We also show that one can coarsely estimate the low resolution image from a bag of patches, suggesting that a bag of image patches encodes some geometric information about the original image.

Download
  • Paper [pdf], at 2010 IEEE CVPR
    • @inproceedings{Cho_CVPR2010b,
      author = {Taeg Sang Cho and Shai Avidan and William T. Freeman},
      Booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
      Title = {A probabilistic image jigsaw puzzle solver},
      Year = {2010}}
  • Supplemental material [pdf]
  • MATLAB Demo - [link]
  • This work was on press! [New Scientist], [PopSci], [Switched], [BBC]

Related work
Acknowledgments

This research is partially funded by NGA NEGI-1582-04-0004, by ONR-MURI Grant N00014-06-1-0734, and by gift from Microsoft, Google, Adobe. The first author is partially supported by Samsung Scholarship Foundation.

Last update: Aug. 18. 2010