Skip to content

Lucas1Jorge/Huawei_Honor_Cup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huawei_Honor_Cup_华为

Problem:
An image was divided into a grid of mxm squares and shuffled. Reconstruct the original image

Solution approach:
For each square block in the shuffled image, calculate the root squared difference between it's borders and all the other blocks borders, considering the 4 possible directions:

left-right

bottom-up

right-left

top-down

Build a graph using the blocks as nodes and these differences as weights.

Get the Minimum Spanning Tree to represent the image.

Examples:


To improve the accuracy rate, post processing might be required.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages