24
An advanced greedy square jigsaw puzzle solver Dolev Pomeranz

An advanced greedy square jigsaw puzzle solver

  • Upload
    baakir

  • View
    80

  • Download
    0

Embed Size (px)

DESCRIPTION

An advanced greedy square jigsaw puzzle solver. Dolev Pomeranz. The problem. From this. To this. Current best known solver. By Cho et al. 432 parts, 28 x 28. Uses clues The solver is based on a probabilistic approach. Problem properties. Know to be NP-Complete Using square parts - PowerPoint PPT Presentation

Citation preview

Page 1: An advanced greedy square jigsaw puzzle solver

An advanced greedy square jigsaw puzzle solver

Dolev Pomeranz

Page 2: An advanced greedy square jigsaw puzzle solver

The problem

From this

To this

Page 3: An advanced greedy square jigsaw puzzle solver

Current best known solver

• By Cho et al.• 432 parts, 28 x 28.• Uses clues• The solver is based on a probabilistic

approach

Page 4: An advanced greedy square jigsaw puzzle solver

Problem properties

• Know to be NP-Complete• Using square parts

– Simple to code– Hard to solve

• A brute force algorithm will take O(n!) time, where n is the number of parts

• If we had an accurate parts compatibility function we could have solve in polynomial time using a greedy algorithm

Page 5: An advanced greedy square jigsaw puzzle solver

Compatibility metricsFinding out the likelihood that two given parts are neighbours

Page 6: An advanced greedy square jigsaw puzzle solver

Compatibility metrics

1 2 32 3 43 4 5

3 4 54 5 65 6 7

Page 7: An advanced greedy square jigsaw puzzle solver

New compatibility metrics

• Backward difference-based compatibility

• Central difference-based compatibility

• Square absolute dissimilarity-based metric (SAD)

2 4

2 4

6 8

6 8

6

6

4

4

Page 8: An advanced greedy square jigsaw puzzle solver

New compatibility metrics

Page 9: An advanced greedy square jigsaw puzzle solver

Performance metricsMeasuring the quality of agiven solution

Page 10: An advanced greedy square jigsaw puzzle solver

Performance metrics

• Original Image Solution Image

• Direct comparison metric – No cell is placed correctly

• Neighbour comparison metric – Many neighbours are placed correctly

1 2 34 5 67 8 9

3 1 26 4 59 7 8

Page 11: An advanced greedy square jigsaw puzzle solver

Estimation metricsUsing performance metrics to imply the convergence of an algorithm is equivalent to using clues.(Best buddies metric)

Page 12: An advanced greedy square jigsaw puzzle solver

The shifting problemRegions are often placed shifted to their original location

Page 13: An advanced greedy square jigsaw puzzle solver

The shifting problem

Page 14: An advanced greedy square jigsaw puzzle solver

The shifting problem – A simple example

(a) Greedy solver basic solution

(b) The basic solution segmentation map

(c) Best shifted solution

Page 15: An advanced greedy square jigsaw puzzle solver

Greedy algorithm with modules approachChains of modules, each target a different problem

Page 16: An advanced greedy square jigsaw puzzle solver

Greedy algorithm with modules approach

Shifting algorithmSegmentation methods Shifting methods

Greedy algorithm

Improve compatibility resultsRelaxation labeling Loopy belief propagation

Calculate compatibility

Dissimilarity metric SAD metric

Page 17: An advanced greedy square jigsaw puzzle solver

Improve compatibility results

Page 18: An advanced greedy square jigsaw puzzle solver

Solver test results• Sample of 10 images• Size of 400 × 400

Page 19: An advanced greedy square jigsaw puzzle solver
Page 20: An advanced greedy square jigsaw puzzle solver
Page 21: An advanced greedy square jigsaw puzzle solver

Solver test results - Example 1

(a) 0% direct, 22.168% neighbour, 18 seconds.

(b) 0% direct, 53.2227% neighbour, 18 seconds

(c) 100% direct, 100% neighbour, 23 seconds

Greedy with no added improvements

With SAD metric With SAD metric + Shift

256 parts

Page 22: An advanced greedy square jigsaw puzzle solver

Solver test results - Example 2Greedy with no

added improvements

With SAD metric With SAD metric + Shift

Simple object, difficult background

256 parts

Page 23: An advanced greedy square jigsaw puzzle solver

Solver test results - Example 3Greedy with no

added improvements

With SAD metric With SAD metric + Shift

Computer graphics, with repetitive patterns

256 parts

Page 24: An advanced greedy square jigsaw puzzle solver

Q & A

Thank you!

Future research:

• Improve compatibility results algorithms (RL)

• GA to improve compatibility functions• Smart shifting methods