opencv - Data clustering in C++ using openGL -
i working on project object tracking, getting data (distance in mm , amplitude) lidar sensor(pepperl-fuchs r2000). using opengl , c++ displaying data in linux machine.
want group points in clusters based on distance. don't know how put clusters in separate containers in c++? there possibility can use output data opengl input data in opencv object tracking?
you should transform opengl data opencv structures. there built-in functions in opencv share data, look here. may copy opengl points opencv mat
, or vector of opencv cv::point3f
. how depends on opengl structure points represented in. if have convert matrices opengl opencv, take account opengl stores matrices in column-major order, whereas opencv row-major order.
then, opencv provides (limited) clustering solutions. depending on application, k-means may work, i'd suggest @ other clustering techniques, such quickshift or dbscan.
Comments
Post a Comment