Looking for program to compare pixel pictures

Looking for program to compare pixel pictures

Post by Dieter Rohlfi » Wed, 02 Jul 2003 07:00:35



I'm looking for a program to compare pixel pictures.

I have thousends of files with pictures (jpeg, pnm, pcx and so on).

To find identical pictures I can cmp two files. They are identical,
if they compare bit by bit identically. Okay, that's very easy.

But in my view two pictures are even identical, if they show the same,
but with different resolutions (eg. 640x480 and 1024x768). The cmp
program will fail in that case, because they are not identical bit
by bit.

Does anybody know of a program, which analyzes the content of image
files and gives an answer, whether the pictures are the same or very
similar? It has something to do with pattern recognition.

I appreciate any hints and/or links.

Dieter Rohlfing

--

 
 
 

Looking for program to compare pixel pictures

Post by Kirk Strause » Wed, 02 Jul 2003 08:45:25


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Quote:> Does anybody know of a program, which analyzes the content of image files
> and gives an answer, whether the pictures are the same or very similar? It
> has something to do with pattern recognition.

I doubt you'll find something that does exactly what you want, but have you
considered using something like ImageMagick's "convert" program to generate,
say, 32x16 16-color thumbnails of all of your pictures, then use "cmp" to
check for similarities?
- --
Kirk Strauser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/AMaw5sRg+Y0CpvERAke2AKCFR6wcs6JjXbMAzKOvpO1gWgEKuACgnpm6
BLBtzOwihhfRZuDfqpcsZgo=
=tgB7
-----END PGP SIGNATURE-----

 
 
 

Looking for program to compare pixel pictures

Post by Vilmos Sot » Wed, 02 Jul 2003 11:15:12



>> Does anybody know of a program, which analyzes the content of image files
>> and gives an answer, whether the pictures are the same or very similar? It
>> has something to do with pattern recognition.

> I doubt you'll find something that does exactly what you want, but have you
> considered using something like ImageMagick's "convert" program to generate,
> say, 32x16 16-color thumbnails of all of your pictures, then use "cmp" to
> check for similarities?

Actually once I wrote such a program, but I lost it eons ago.
It was a short perl script which used convert.

I removed the outer 15 percent of the picture (so any borders were
lost), resized them to something like 8x8 and 2 colors, converted
to a common format (xpm I think), and I compared those images.
Surprisingly many similar images were found, but some was not,
and there were also a couple of false positives.

It did not perform perfectly, but it was pretty good compared
to the time and effort I invested into it.

If the OP knows a little about programming, then he might go
along this path and the whole thing can be done in a very
short time.

Vilmos

 
 
 

Looking for program to compare pixel pictures

Post by Dieter Rohlfi » Thu, 03 Jul 2003 09:19:16


Thanks to Kirk and Vilmos for their replies.

Quote:>> I doubt you'll find something that does exactly what you want, but have you
>> considered using something like ImageMagick's "convert" program to generate,
>> say, 32x16 16-color thumbnails of all of your pictures, then use "cmp" to
>> check for similarities?

>I removed the outer 15 percent of the picture (so any borders were
>lost), resized them to something like 8x8 and 2 colors, converted
>to a common format (xpm I think), and I compared those images.
>Surprisingly many similar images were found, but some was not,
>and there were also a couple of false positives.

I think, your proposals bring me a lot closer to my goal. I do not expect
to find a 100% solution. A hit ratio of about 90% is very good for me.

Thanks again and have a nice day.

Dieter Rohlfing

--

 
 
 

1. UNIX Devil picture: found (was: Looking for UNIX picture)

Finally I found the UNIX (BSD?) daemon picture. Here is the URL
http://colargol.edb.tih.no/~geirme/gizmos/illustrators/devil.gif

Now, if I made a picture with the same character (the unix devil
doing something else), would I violate the copyright?

I am still looking for a picture that can indicate UNIX (and its
variants) for my handout.

I want to have a picture of another devil (or an angel?) which
could indicate a "daemon" for my UNIX handout. Or maybe another
picture that "clearly" says ... UNIX. Maybe a cartoon picture of
Linus T. killing the daemon ?(that would be cool).
Too bad I can't draw :-(

Maybe a picture of "login:", or "exit();", or "init" ?
Comments?

-- budi
--

#include <std-disclaimer.h>
Unix Support - Computer Services - University of Manitoba

2. SoundMax Audio card

3. Looking for a good program source compare utility

4. The Linux Prayer!

5. Looking for X-based pixel editor ?

6. HELP: Driver, Vegas 32 bit PCI card

7. A picture is worth a thousand words: picture of the software world

8. Read HowTo, can't lpr using Yggdrasil Fall

9. looking for a news picture sucker

10. programming each pixel of a vga/ega screen in Linux

11. Looking for a picture of a Model 33 TTY

12. X shuts down when trying to look .gif pictures

13. KDE background picture looks ugly