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

조회 수: 7 (최근 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에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by