How to match two images in matlab?
Show older comments
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?
Accepted Answer
More Answers (2)
KALYAN ACHARJYA
on 26 Nov 2018
Edited: KALYAN ACHARJYA
on 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 Comment
Evelynn Tan
on 27 Nov 2018
Edited: Evelynn Tan
on 27 Nov 2018
Martin H. Trauth
on 27 Nov 2018
0 votes
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.
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!