Hello,
I have two sets of matched points (matchedPoints1 and matchedPoints2, the size is 142×1 and the type is SURFPoints) and I want to calculate the distance between them. I tried the function pdist2() like this :
dist_matchedPoints=pdist2(matchedPoints1,matchedPoints2,'euclidean');
But I got the following error :
Error using cast
Unsupported data type for conversion: 'double'.
Error in pdist2 (line 250)
X = cast(X,outClass);
I don't really understand the meaning of this error message so can somebody help me to solve this problem ?
Thanks a lot.
Best Answer