Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in match_descriptors (line 18): Unrecognized 'DISTANCE' argument: squaredeuclidean #5

Closed
biesseck opened this issue Sep 23, 2017 · 2 comments

Comments

@biesseck
Copy link

biesseck commented Sep 23, 2017

In function match_descriptors() (line 18), the function pdist2() is called with 'squaredeuclidean' argument, but it is not in the list of valid methods (line 142). It should be replaced by 'euclidean' or 'seuclidean', right?

@ahojnnes
Copy link
Owner

seuclidean is not the same as squaredeuclidean, please refer to the documentation at https://ch.mathworks.com/help/stats/pdist2.html for details.

@biesseck
Copy link
Author

biesseck commented Oct 16, 2017

My problem is I was using Matlab R2014a. In this version pdist2() function doesn't contain 'squaredeuclidean' option. I've got Matlab R2016b and now it's running ok. I thank you so much!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants