This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes image compare Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "image compare" Watch "image compare" New topic
Author

image compare

vasanth raman
Greenhorn

Joined: Aug 13, 2009
Posts: 24
i need java code for to compare two images are same or not using image properties
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
What, exactly, do you mean by image properties - width, height and color depth? If so, check out Marco Schmidt's ImageInfo class. If you meant something else, please be more specific.


Ping & DNS - my free Android networking tools app
vasanth raman
Greenhorn

Joined: Aug 13, 2009
Posts: 24
thanks but i am having no of images in one folder i want to compare 1 particular image is contained in that folder or not
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
So what you have is a file name, and now you want to check whether a file with that name exists in a given directory? The java.io.File class has everything you need for that.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: image compare
 
Similar Threads
pixel difference
Checking if two images are identical
Checking if two images are identical
how to compare two image boundaries?
ImageIcon vs Image