图片比较 - 旋转,对齐方式和缩放 [英] Image comparison - rotation, alignment and scaling

查看:176
本文介绍了图片比较 - 旋转,对齐方式和缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下需求。有一些数量的形式,即坯件 - 例如在调查中使用的那些。在那些不是充满了信息,我会打电话图像模板,从现在开始。除了图像模板,我还许多图像,基本上填充有信息的图像的模板。例如,有一种调查,有两个空白填充 - 这些是图像模板。很多人都填补了空白与他们的个人信息,而这些都是图像。

I have the following needs. There are some number of forms, i.e blanks - for example the ones used in surveys. The ones which aren't filled with information, I will call image templates from now on. Apart from the image templates, I have also many images, which are essentially the image templates filled with information. For example, there is a survey and there are two blanks for filling - these are the image templates. Many people have filled the blanks with their personal information and these are the images.

图片模板进行扫描以完美的造型。但许多扫描图像的倾斜或不正确地对准,或者缩放。所以,我有以下要求 - 它属于哪个图像模板每张图片必须得到承认。后它被识别,​​则必须将适当倾斜,对准和缩放到图像模板。

The image templates are scanned in a perfect shape. But many of the scanned images are tilted or not properly aligned, or maybe scaled. So I have the following requirement - every image must be recognized to which image template it belongs. After it is recognized, it must be properly skewed, aligned and scaled to the image template.

我知道这是一个复杂的任务,这就是为什么我需要一个库,preferably一个 C#之一。我发现 AForge ,但到现在为止我只看到一个合适的方法倾斜。基本上我需要一个库,作为输入的图像模板和图像,并设置一个标志,如果图像不匹配的图像的模板。但如果配衬它必须返回相应的倾斜角度,调整和缩放。

I know this is a complex task and that's why I need a library, preferably a C# one. I have found AForge, but till now I have only seen a suitable method for skewing. Essentially I need a library which takes as input an image template and an image, and sets a flag if the image does not match to the image template. But if it matchs it must return the appropriate skew angle, alignment and scaling.

如果您有任何意见或使用这样的库,我将AP preciate它极大地。

If you have any ideas or used such a library, I will appreciate it greatly.

祝你一切顺利,

斯托

推荐答案

这个问题似乎是一个图片登记问题再加上一些的模板匹配的问题。

The problem seems to be an image registration problem coupled with some template matching problem.

  • 图像配准

根据如何扫描文档可能失真(比例因子,旋转,倾斜..​​.)中可以使用简单的刚性变换寄存器图像(即平移+旋转,只有两个相应的点,需要)到更复杂的,如非刚性变换(需要更多的对应点)。对应点可手动给出但是理想应该被自动检测

Depending on how the scanned document may be distorted (scale factor, rotation, skew...) one can register images using simple rigid transform (i.e. translation + rotation, only two corresponding points are needed) to more complex one such as non rigid transform (more corresponding point are needed). The corresponding points can be manually given but ideally should be automatically detected.

ITK库包括几种方法图像配准

ITK library includes several methods for image registration

  • 在模板匹配的问题

在图像被对准,图像和可能的模板的数据库之间的比较,可以通过首先提取特征的图像中,并比较它们的模板数据库来实现。这是非常普遍的,并应相对于所使用的图像被细化。

Once your images are aligned, the comparison between an image and possible templates database could be achieved by first extracting characteristic features in the image and comparing them to your template database. This is very general and should be refined with respect to the image used.

目前,结合其他方法的两个图像配准和模板匹配

There is other way that combine both image registration and template matching

  • 袋的特点的做法,包括在提取的有趣的点的(稳健的几种类型的图像变形),从图像的点生成的图像特征签名事实上图像比较是一个签名比较。
  • the Bag Of Features approach which consists in extracting interesting points (robust to several types of image deformation) from the image, the points generate a signature that characterizes the image, the image comparison being in fact a signature comparison.

这篇关于图片比较 - 旋转,对齐方式和缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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