Image unshredding using a TSP solver
github.com
Image unshredding using a TSP solver
1–10 of 56 posts
Re: Image unshredding using a TSP solver
#2Re: Image unshredding using a TSP solver
#3Re: Image unshredding using a TSP solver
#4Re: Image unshredding using a TSP solver
#5Re: Image unshredding using a TSP solver
#6The 2D shuffling result is a bit surprising at first glance, but less so when you think about it - row comparison doesn't care about the order of the pixels in each row as long as the order is the same in both, and the shuffling mechanism guarantees that.
Re: Image unshredding using a TSP solver
#7Could be used to compress images? Perhaps instead of shuffling the columns and rows randomly they could be ordered in ways that are better suited for compression.
Re: Image unshredding using a TSP solver
#8Re: Image unshredding using a TSP solver
#9Re: Image unshredding using a TSP solver
#10Roughly how long does this algorithm take to run?
1.6 seconds to make the TSPLIB2 file representing the dissimilarity graph. (time make tsp/instances/blue-hour-paris.tsp)
0.3 seconds to run the solver and produce the optimal tour. (time make tsp/tours/blue-hour-paris.tour)
0.4 seconds to reconstruct the image from the shuffled version using the tour. (time make images/reconstructed/blue-hour-paris.png)