How to match two images in matlab?
    22 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Evelynn Tan
 le 26 Nov 2018
  
    
    
    
    
    Commenté : Image Analyst
      
      
 le 5 Déc 2018
            I have two different photos of lips but they are from the same person and I have created a mask for each of them, how can I match them and get the percentage of matching?
0 commentaires
Réponse acceptée
  Image Analyst
      
      
 le 27 Nov 2018
        
      Modifié(e) : Image Analyst
      
      
 le 27 Nov 2018
  
      See my attached demo.
2 commentaires
  Image Analyst
      
      
 le 5 Déc 2018
				The do not have to be the same image content, but of course the sizes/dimensions need to match.  How could it possibly work otherwise?  How could you AND images pixel-for-pixel if one image is 30 by 60 and another is 640 by 480?  Think it through.  If you resize one, is that OK?  Why are they different in the first place?  Were they not both acquired by the same camera or process?
Plus de réponses (2)
  KALYAN ACHARJYA
      
      
 le 26 Nov 2018
        
      Modifié(e) : KALYAN ACHARJYA
      
      
 le 26 Nov 2018
  
      You can do it number of ways
        2. compare the two gray images, just subtract one image from other, see the difference if 
image1-imag2=0
 then 100% match, otherwise if image1-image2=not zero matrix just add them and find the percentage.
        3. Anotherway you can check the custom function here
1 commentaire
  Martin H. Trauth
 le 27 Nov 2018
        First you need to perform an image registration, i.e. matching them first before you compare them pixel by pixel remembering that matching never yields a perfect result/match. There is a number of functions available in the Image Processing Toolbox, such as imregister.
0 commentaires
Voir également
Catégories
				En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



