Template Function lvr2::iterativePlanarClusterGrowingRANSAC

Function Documentation

template<typename BaseVecT>
ClusterBiMap<FaceHandle> lvr2::iterativePlanarClusterGrowingRANSAC(BaseMesh<BaseVecT> &mesh, FaceMap<Normal<typename BaseVecT::CoordType>> &normals, float minSinAngle, int numIterations, int minClusterSize, int ransacIterations = 100, int ransacSamples = 10)

Algorithm which generates planar clusters from the given mesh, drags points in clusters into regression planes and improves clusters iteratively.

Parameters:
  • mesh

  • minSinAngle1 - minSinAngle is the allowed difference between the sin of the angle of the starting face and all other faces in one cluster.

  • numIterations – for cluster improvement

  • minClusterSize – minimum size for clusters (number of faces) for which a regression plane should be generated