is there have any method to do the binary image matching??

is there have any method to do the matching for two binary image? my concept is using the for loop and counter , "if white color && white color ,counter ==1; if white color && black color ,counter == 0"
i have concept, but any one know how to write the this code in matlab ??

답변 (2개)

Image Analyst
Image Analyst 2012년 1월 31일
How about (untested)
counter = sum(sum(bitand(A,B)));
or something like that?

댓글 수: 1

does "for loop"can do this kind of matching?
may i know detail about "counter = sum(sum(bitand(A,B)));"?? thanks

댓글을 달려면 로그인하십시오.

Walter Roberson
Walter Roberson 2012년 2월 1일
sum(A(:) == B(:))
or
sum(sum(A == B))

댓글 수: 2

can i have the detail coding for binary image matching?? thanks
That _is_ the detail coding except for the reading of the images.
Either of those expressions does the complete looping over the entire matrix adding 1 for each matching position.
So now you have the match counts. Now what?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2012년 1월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by