is there have any method to do the binary image matching??
4 次查看(过去 30 天)
显示 更早的评论
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 ??
0 个评论
回答(2 个)
Walter Roberson
2012-2-1
sum(A(:) == B(:))
or
sum(sum(A == B))
2 个评论
Walter Roberson
2012-2-1
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?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!