Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to compare images to check the similarity?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-01-2010
Member
 
Join Date: Dec 2009
Posts: 14
How to compare images to check the similarity?
  

I am beginner(fresher) programmer in this vast programming language. Right now i am learning programming languages like Java, C++, C sharp, DBMS and PHP. I just love to learn new-new invention(things) in the programming world. I am doing a project, in which i want to compare the two images and check whether it is similar or not? Please any one can help me.

Reply With Quote
  #2  
Old 25-01-2010
Member
 
Join Date: Apr 2008
Posts: 1,947
Re: How to compare images to check the similarity?

Good question asked by you. Most of the people gets problem in this comparison of two images, it is not that easy also, but not impossible also. Till my knowledge of the programming language, i think there three ways to achieve this comparison of images, to check their similarity. The three steps are as follows:
1] You can convert the two images to an array of integer.
2] Also compare the two arrays.
3] And after that decide if they are a similar or not.
Hope your problem will be solved soon.
Reply With Quote
  #3  
Old 25-01-2010
Member
 
Join Date: May 2008
Posts: 2,007
Re: How to compare images to check the similarity?

I think that the comparison of the images contents is not that a simple task, and in many cases, a ill-defined one. To check whether both(2) images are equal or not, hope it can be done by simple function or operator which can return true or false and/or may be a value that is 0 and 1, where 0 means different, 1 means equal and intermediate values can be considered different degrees of similarity. Hope your problem will be fix soon.
Reply With Quote
  #4  
Old 25-01-2010
Member
 
Join Date: Apr 2008
Posts: 2,000
Re: How to compare images to check the similarity?

According to me, the comparing of images is not an easy job to do. I think you will need someone how is good/expert in the programming. There are some ways through which you can achieve the comparison of the images. Firstly, locate the ROI(Region of Interest, where the objects appear in the given image), now resize the ROIs into a common size. After that, do substraction of ROIs and calculate the Black and White Ratio of the resultant image after subtraction. Hope this would help you.
Reply With Quote
  #5  
Old 25-01-2010
Member
 
Join Date: May 2008
Posts: 2,291
Re: How to compare images to check the similarity?

I think you need good experience to develop the program on the comparison of the images. The programming language is very deep to understand and learn. To compare the two images is a very long process. The comparison of two images can be done by counting the pixel-by-pixel, which very long and time consuming process. I would suggest you to search "image processing" on GIMP's website and you can find source code of the program. Hope your problem will be fix.
Reply With Quote
  #6  
Old 25-01-2010
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: How to compare images to check the similarity?

Actually i also have the same issue as of yours, i also wants know to compare two images. My aim is little bit different from yours, i have two images on a JFrame and they are represented by labels. One is generated randomly and i want to compare it to another and if both of them are same, then a message dialog box is shown stating that the images are the same or else showing images are no same.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to compare images to check the similarity?"
Thread Thread Starter Forum Replies Last Post
Similarity between sanctum and killing floor Kumbakaran Video Games 5 24-05-2011 10:14 AM
What is the similarity between views and DBMS Gonercase Software Development 3 10-01-2011 02:55 AM
What are the differences and similarity between a class and a structure in VB.NET. RogerFielden Software Development 3 11-09-2009 09:59 AM
Similarity between Xbox and PC Xanti Portable Devices 3 23-06-2009 02:58 PM
To test similarity of two images in Windows Anas Windows Software 3 31-03-2009 04:42 PM


All times are GMT +5.5. The time now is 12:53 AM.