how to get a considerable difference while matching two different images with a same reference image

1 次查看(过去 30 天)
i want to match two images and for that i am using the following code: matched_data=0; unmatched=0; z=imsubtract(a,b); for i= 1:1:300 for j= 1:1:300 if (z(i,j)==0) matched_data=matched_data+1; else unmatched=unmatched+1; end end end total_data = numel(z); total_matched_percentage = (matched_data/total_data)*100;
but i have a reference image and with 1 real time image the percentage is coming 53% and it is perfect but problem arises when i match another image with reference image the matching should be 45 5 but it is coming 52%,so in short i have to larger the difference between these two situations.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by