图像比较 [英] Image comparison

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

问题描述

我有两张BMP格式的图像.需要比较两者并确定
差异.

图片的内容可能会略有不同,用于比较的图片的高度和宽度可以具有不同的大小.

由于需要集成解决方案,因此专门寻找ActiveX组件或DLL.

不看文件比较.特别需要在两个图像文件之间进行比较.结果突出显示了需要比较的图像中的差异.

如果可能,结果应以成功百分比表示.

I have two images of BMP format. Need to compare the two and identify
the diffrence.

Content of image can slightly vary, height and width of image for comparison can be of different size.

Specifically looking for an ActiveX component or a DLL as the solution need to be integrated.

Not looking at file comparison. Comparison is needed specifically between two image files. The result highlight where the differences are in the image that is called for comparison.

If possible, the result should reflect in terms of percentage of success.

推荐答案

位图很简单(无压缩等),只需查看
Bitmaps are simple (no compression etc) just check out the file structure and compare the images byte by byte.

Also, to check before comparing byte by byte, if bitmaps are the same I would calculate their hashes.


memcmp(..)
可以比较任何两个缓冲区
(当然,在比较它们的有效长度之后):)
Any two buffers could be compared by memcmp(..)

(of course after the comparing their effective lengths) :)


.net中有一个内置函数可用于比较相同或不同的图像...

或尝试点击以下链接

< a href ="http://www.catenary.com/howto/compare.html"> http://www.catenary.com/howto/compare.html</a> [< a href ="http://www.catenary.com/howto/compare.html"target =" _ blank"title ="新窗口> ^</a>]



< a href ="http://www.theprogrammersweblog.com/2009/08/toggle-and-compare-images-using.html"> http://www.theprogrammersweblog.com/2009/08/toggle- and-compare-images-using.html</a> [< a href ="http://www.theprogrammersweblog.com/2009/08/toggle-and-compare-images-using.html" target ="_ blank "title =" New Window> ^</a>]


< a href ="http://search.cpan.org/~avif/Image-Compare-0.2/Compare.pm"> http://search.cpan.org/~avif/Image-Compare-0.2/Compare.pm</a> [< a href ="http://search.cpan.org/~avif/Image-Compare-0.2/Compare.pm" target ="_ blank" title ="New Window"> ^</a>]
there is an built function available in .net for compare image that both are same or not...

or try following link

<a href="http://www.catenary.com/howto/compare.html">http://www.catenary.com/howto/compare.html</a>[<a href="http://www.catenary.com/howto/compare.html" target="_blank" title="New Window">^</a>]



<a href="http://www.theprogrammersweblog.com/2009/08/toggle-and-compare-images-using.html">http://www.theprogrammersweblog.com/2009/08/toggle-and-compare-images-using.html</a>[<a href="http://www.theprogrammersweblog.com/2009/08/toggle-and-compare-images-using.html" target="_blank" title="New Window">^</a>]


<a href="http://search.cpan.org/~avif/Image-Compare-0.2/Compare.pm">http://search.cpan.org/~avif/Image-Compare-0.2/Compare.pm</a>[<a href="http://search.cpan.org/~avif/Image-Compare-0.2/Compare.pm" target="_blank" title="New Window">^</a>]


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

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