Matlab code for matching two images
显示 更早的评论
Hey guys I need a matlab code to check if two images are matching or not? I tried correlation but it is nt working. Please help me with the code or tell me if there is any such kind function in matlab!!
1 个评论
David Young
2011-4-24
When do two images match? Do they have to be identical, or can there be some differences? In what way does correlation not work - do you get an error message, or is it that you are defining "matching" to mean something other than "highly correlated"?
回答(3 个)
Image Analyst
2014-8-21
编辑:Image Analyst
2014-8-21
matches = A == B;
percentMatch = 100 * sum(matches(:)) / numel(matches);
This is for grayscale images. If it's a color image, the formula needs to be modified slightly.
Mangesh
2014-8-21
0 个投票
the question states that, if i have images i.e A and B,and if i convert these two images in matrix form, then the matrix will match or not? if matches, then ok. if not then in what percent A matches with B????? I have the same que.
Chandrika yadav
2019-11-15
0 个投票
matches = A == B;
percentMatch = 100 * sum(matches(:)) / numel(matches);
1 个评论
Image Analyst
2019-11-15
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!