如何比较两张图片 [英] How to compare two pictures

查看:90
本文介绍了如何比较两张图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我使用网络摄像头拍摄了一张照片,并且需要将其与之前拍摄的其他照片进行比较.

我试图按像素比较两张图片,但是并没有返回我想要的结果.确保会发生这种情况,因为亮度交替变化且周围的光波交替变化.

请告知我可以继续解决此问题的可能方法.

注意:我没有颜色或颜色处理方面的经验;只知道RGB和十六进制表示:).因此,请尽可能为我提供参考.

谢谢您.

Dears

I capture a picture with my webcam, and I need to compare it with other picture captured previously.

I tried to compare the two pictures by pixels, but it didn''t return me the desired result; sure this occurs because alternating on brightness and alternating on surrounded light waves.

Please advise me which possible way I could go on to resolve this problem.

Note: I don''t have an experience with colors or how to deal with it; just knowing RGB and Hex representation :). So try to support me with references as you could.

Thank you

推荐答案

您可以使用托管GDI +方法来执行此任务.抢劫以下CP文章

使用GDI +比较图像 [比较方法 [图像处理技术 [比较方法2 [
You can make use of Managed GDI+ Methods to perform this task. Take a loot at the following CP article

Comparing Images using GDI+[^]


Here are a few more reference links:

Comparison Method[^]

Image Processing Technique[^]

Comparison Method 2[^]

About Image Comparison :

Every Image has 2 most important and popular quantity. The Root Mean Square ( RMS ) and Signal to Noice Ratio ( SNR ) these are mere pixel ratio comparisons. Which dont really yield you the actual results.

You can make use of some advanced techniques as mentioned by @orc, or there is one more advanced and an entirely different approach to solve the problem. Which makes use of Frequency domain analysis allowing the measurement of minute distortion regardless of Translation.

You might take a look at those algorithms before you start implementing your solutions :)

BR//
Harsha


您的问题可能有很多答案,因为该主题正在比较两个图像.
没有正确的答案,并且在图像比较中存在许多未解决的问题,并且如果您要的是简单且有限的,可能没有适合您的简单解决方案.

一些技术供您查看;

-
缩放不变特征变换 [模板匹配 [霍夫变换 [图像比较1 [使用GDI +比较图像 [图像比较2 [
Your question can have so many answers since the topic is comparing two images.
There is no correct answer, and there are many unsolved issues in the comparison of images, and there might be no simple solutions which is suitable for you if what you ask for is simple and limited.

Some thecniques for you to look at;

-Scale Invariant Feature Transform[^]
-Template Matching[^]
-Hough Transform[^]

Some basic code examples;

Image Comparison 1[^]
Comparing Images using GDI+[^]
Image Comparison 2[^]


这篇关于如何比较两张图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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