一个简单的方法(工具?)比较图像像素的像素的不同格式? [英] An easy way (tool?) to compare images pixel for pixel in different formats?

查看:110
本文介绍了一个简单的方法(工具?)比较图像像素的像素的不同格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在java中编写了一个基本的无损jpeg文件,但我想把它生成的文件与原始文件进行比较。



只有在十六进制编辑器比较这么多,任何人都知道一个简单的方法,软件或java基础(最好是软件,因为我不觉得像任何更多的编码现在!),我可以比较两个图像,并产生一个差异图其中像素不一样?



感谢。

解决方案

感谢您的建议。



我尝试了Gimp方法,除非当图像之间的差异非常小时,工作良好。我找不到一个增强差异选项使差异显而易见,直方图也只是粗略表示差异。



最后我使用< a href =http://www.imagemagick.org/script/index.php =nofollow noreferrer> ImageMagick 我曾经安装了一段时间,忘了所有。创建差异/比较图像与输入一样简单:

 比较first.jpg second.png difference.gif 



这是非常好的解释

此处


Well I've written a basic lossless jpeg joiner thing in java now but I'd like to compare the files it produces with the original files.

I can only compare so much in a hex editor, does anyone know of an easy way, software or java based (preferably software as I dont feel like any more coding for now!) that I can compare two images and produce a "difference map" of where the pixels aren't the same?

Thanks.

解决方案

Thanks for the suggestions.

I tried the Gimp approach first which works well except when the difference between the images are very small. I couldn't find an "enhance differences" option to make the differences obvious and the histogram also only gives a rough representation of the differences.

In the end I used ImageMagick something I'd installed a while ago and forgot all about. Creating a difference/comparison image is as easy as typing:

 compare first.jpg second.png difference.gif

in the command line.

It's all nicely explained here.

这篇关于一个简单的方法(工具?)比较图像像素的像素的不同格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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