Run portable DBSCAN code from github

Hello,

I need help getting some code from github work. I have a number of 2D points and want to cluster them into different sized clusters.
I worked with std::partition but I am not overall happy with the result so I wanted to try DBSCAN.
There are two common posted implementations on github:
1. https://gist.github.com/ialhashim/b29e5455333aa6ae0071
2. https://github.com/propanoid/DBSCAN/blob/master/dbscan.cpp

I want to run the first one which is portable. So I copied the DBSCAN.hpp file into a header-File of my project and included the header file in my main file. This works fine. Now I can use the namespace clustering .

But I don't know the next step. How can I get my 2D points into the algorithm?

I tried something with clustering::DBSCAN<Eigen::Vector2f, Eigen::MatrixXf> test; but I receive the error
"no default constructor exists for class..."
Last edited on
Topic archived. No new replies allowed.