is there have any method to do the binary image matching??
Ältere Kommentare anzeigen
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 ??
Antworten (2)
Image Analyst
am 31 Jan. 2012
How about (untested)
counter = sum(sum(bitand(A,B)));
or something like that?
1 Kommentar
lingru celine
am 1 Feb. 2012
Walter Roberson
am 1 Feb. 2012
sum(A(:) == B(:))
or
sum(sum(A == B))
2 Kommentare
lingru celine
am 1 Feb. 2012
Walter Roberson
am 1 Feb. 2012
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?
Kategorien
Mehr zu Image Arithmetic finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!