I have two sets of matched points (matchedPoints1 and matchedPoints2, the size is 142x1 and the type is SURFPoints) and I want to calculate the distance between them. I tried the function pdist2() like this :
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.