Find Similarities between 2 binary image

조회 수: 4 (최근 30일)
TING EI WEI
TING EI WEI 2017년 5월 10일
댓글: Walter Roberson 2017년 5월 10일
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.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 5월 10일
Mean Squared Error. immse()
  댓글 수: 2
TING EI WEI
TING EI WEI 2017년 5월 10일
Hello, its it work for binary matrices as well? Can this become a feature for classification? i try the Mean Squared Error but the result between (different samples )and (same samples) has not much different.
Walter Roberson
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.)

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

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by