加入砌出原始图像 [英] Joining the puzzle out of raw images

查看:105
本文介绍了加入砌出原始图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2000 RAW图像52x52像素,对应的拼图重新presenting一个4000x1250像素的图像碎片。另外,图像文件名是一串生成的数字,似乎有东西暴力破解相关?

I have "2000 RAW Images" 52x52 pixels, that correspond to the pieces of a puzzle representing a 4000x1250 pixel image. Also the images file names are bunch of numbers generated, it seems there something related to brute-forcing ?

正如我所说,我需要加入的图像,共同完成拼图。而且我不知道从哪里开始,任何帮助吗?

As i mentioned, i need to join the images together to complete the puzzle. And i have no idea where to start, any help ?

图像是RGB 24位。

The Images are RGB 24 bits.

推荐答案

听起来像一个有趣的项目。下面是我会怎么处理这个问题:

Sounds like a fun project. Here's how I would tackle it:

  1. 尝试建立某种形式的每个图像的边缘轮廓。例如,它可以被基于所述边缘像素的RGB值

  1. Try to create some sort of profile of the edges of each image. It could for instance be based on the RGB-values of the edge-pixels.

从创建这样一个配置文件映射到包含其左/下/右/上边缘相匹配的配置文件。图像四套

Create a mapping from such a profile to four sets containing the images whose left / bottom / right / top edges match the profile.

...
xyz -> { { images whose left   edge has profile xyz },
         { images whose bottom edge has profile xyz },
         { images whose right  edge has profile xyz },
         { images whose top    edge has profile xyz } }
...

  • 现在为每个图像,计算它的4边缘轮廓。尝试与对应设置每个图像对起来。如果剩下的配置文件是 XYZ ,尽量把它的每个图像的右侧面是 XYZ

  • Now for each image, compute its 4 edge profiles. Try to pair it up with each image in the corresponding set. If it's left profile is xyz, try to put it beside each image whose right profile is xyz.

    这篇关于加入砌出原始图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆