分层聚类与Flann opencv [英] Hierarchical Clustering with Flann opencv

查看:529
本文介绍了分层聚类与Flann opencv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我需要聚集一组点在未知数量的集群。我使用opencv,但没有关于 cv :: flann :: hierarchicalClustering 的文档。有人使用这个功能可以帮助我吗?另一个问题是关于返回值应该是集群的数量,但我怎么能理解哪些集群?
我创建了一个 cv :: Mat points ,尺寸为 nx 2 其中n是点数。

I have a problem, I need to clusterize a set of points in an unknown number of clusters. I use opencv but there is not documentation about cv::flann::hierarchicalClustering. Someone that use this function could help me? Another question is about the return value that should be the number of clusters, but how could I understand which are the cluster? I created a cv::Mat points with dimensions n x 2 where n is the number of points.

提前感谢。

推荐答案

功能,请此处。返回值的确是发现的簇数。 I GUESS,然后找到哪个簇属于const Mat& C的每个特征向量。特征参数使用Mat&

There is a documentation for this function, here. The return value is indeed the number of clusters found. I GUESS that you then find to which cluster belong each feature vector in the const Mat& features parameter using Mat& centers.

这篇关于分层聚类与Flann opencv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆