Back to FabImage Library website
You are here: Start » Function Reference » Data Classification » Clustering » ClusterPoints3D

ClusterPoints3D
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Clusters 3D points using K Means Clustering method.
Syntax
C++
C#
void fil::ClusterPoints3D ( const ftl::Array<fil::Point3D>& inPoints, const int inClusters, const int inMaxIterations, ftl::Optional<int> inSeed, const int inRunCount, ftl::Array<ftl::Conditional<ftl::Array<fil::Point3D>>>& outClusters, ftl::Array<ftl::Conditional<fil::Point3D>>& outCentroids, float& outDistanceSum )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPoints | const Array<Point3D>& | Array of points to cluster | ||
![]() |
inClusters | const int | 2 - +![]() |
2 | Number of clusters to extract |
![]() |
inMaxIterations | const int | 10 - 1000 | 200 | Maximal number of KMeans iterations |
![]() |
inSeed | Optional<int> | 0 - +![]() |
5489 | Seed used to initialize random number generators |
![]() |
inRunCount | const int | 1 - +![]() |
1 | Defines how many times the algorithm will be executed |
![]() |
outClusters | Array<Conditional<Array<Point3D>>>& | Resulting Point3D clusters | ||
![]() |
outCentroids | Array<Conditional<Point3D>>& | Center of found clusters | ||
![]() |
outDistanceSum | float& | Sum of distance squares from points in array to its respective cluster center |