Find Similarities between 2 binary image
9 次查看(过去 30 天)
显示 更早的评论
I want to find the similarity distance measure between two binary image like euclidean distance, cosine similarity distance. I have try to use pdist2 but it use the point to find the euclidean distance. Is that there is an any way to find the distance between two vectors? Or any other ways to find the similarity between two image.
0 个评论
回答(1 个)
Walter Roberson
2017-5-10
2 个评论
Walter Roberson
2017-5-10
abc = rand(20,30) > 0.5;
def = rand(20,30) > 0.5;
>> immse(0+abc,0+def)
ans =
0.485
>> immse(uint8(abc),uint8(def))
ans =
0.485
"Can this become a feature for classification?"
You have not defined whether the images are always the same size, and you have not defined whether the images are "registered" relative to each other (that is, the same features are in the same place to the greatest extent feasible.)
If the images are not registered, then I would not expect MSE to be useful on its own (except perhaps of part of attempting to register the two images.)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!