Re: fast image compare?

From: Andrey Kuznetsov (spam0_at_imagero.com.invalid)
Date: 01/04/05


Date: Tue, 4 Jan 2005 14:34:08 +0100


> Whats the best way to compare 2 images to see if they are exactley the
> same?
>
> Specifically, a BufferedImage and a sun.awt.windows.WImage.
>
> My plan is to convert the WImage into a BufferedImage. Then verify that
> they are the same size. Then iterate thru each pixel rgb value. Is there
> a better way?
>

you could compare say 1000 random choosed pixels

-- 
Andrey Kuznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities


Relevant Pages

  • Re: fast image compare?
    ... > Whats the best way to compare 2 images to see if they are exactley the ... a BufferedImage and a sun.awt.windows.WImage. ... http://uio.dev.java.net Unified I/O for Java ...
    (comp.lang.java.programmer)
  • Native memory backed BufferedImage with NIO
    ... I work on an application which grabs/creates images in a native DLL ... using a class which displays a given BufferedImage. ... On the Java side: ... On the JNI side, ...
    (comp.lang.java.programmer)
  • Re: fast image compare?
    ... a BufferedImage and a sun.awt.windows.WImage. ... You might perform a hash function on each image, and then compare the ... That might be a problem if both images are ...
    (comp.lang.java.gui)
  • Re: fast image compare?
    ... a BufferedImage and a sun.awt.windows.WImage. ... You might perform a hash function on each image, and then compare the ... That might be a problem if both images are ...
    (comp.lang.java.programmer)
  • Re: fast image compare?
    ... >>Whats the best way to compare 2 images to see if they are exactley the same? ... a BufferedImage and a sun.awt.windows.WImage. ... eliminate most non-matching images very quickly, ...
    (comp.lang.java.gui)