Image Component Library (ICL)
Public Types | Public Member Functions | Private Attributes | List of all members
icl::geom::CutfreeAdjacencyFeatureExtractor Class Reference

#include <CutfreeAdjacencyFeatureExtractor.h>

Public Types

enum  Mode { BEST, GPU, CPU }
 

Public Member Functions

 CutfreeAdjacencyFeatureExtractor (Mode mode=BEST)
 Constructor. More...
 
 ~CutfreeAdjacencyFeatureExtractor ()
 Destructor. More...
 
math::DynMatrix< bool > apply (core::DataSegment< float, 4 > &xyzh, std::vector< std::vector< int > > &surfaces, math::DynMatrix< bool > &testMatrix, float euclideanDistance, int passes, int tolerance, core::Img32s labelImage)
 Calculates the cutfree adjacency feature matrix. More...
 
math::DynMatrix< bool > apply (core::DataSegment< float, 4 > &xyzh, std::vector< std::vector< int > > &surfaces, math::DynMatrix< bool > &testMatrix, float euclideanDistance, int passes, int tolerance, core::Img32s labelImage, std::vector< SurfaceFeatureExtractor::SurfaceFeature > feature, float minAngle)
 Calculates the cutfree adjacency feature matrix with minimum angle constraint. More...
 

Private Attributes

Data * m_data
 internal data type More...
 

Detailed Description

This class implements the cutfree adjacency feature for feature-graph based segmentation.

Member Enumeration Documentation

◆ Mode

Enumerator
BEST 
GPU 
CPU 

Constructor & Destructor Documentation

◆ CutfreeAdjacencyFeatureExtractor()

icl::geom::CutfreeAdjacencyFeatureExtractor::CutfreeAdjacencyFeatureExtractor ( Mode  mode = BEST)

Constructor.

Constructs an object of this class.

Parameters
modeGPU, CPU and BEST (default)

◆ ~CutfreeAdjacencyFeatureExtractor()

icl::geom::CutfreeAdjacencyFeatureExtractor::~CutfreeAdjacencyFeatureExtractor ( )

Destructor.

Member Function Documentation

◆ apply() [1/2]

math::DynMatrix<bool> icl::geom::CutfreeAdjacencyFeatureExtractor::apply ( core::DataSegment< float, 4 > &  xyzh,
std::vector< std::vector< int > > &  surfaces,
math::DynMatrix< bool > &  testMatrix,
float  euclideanDistance,
int  passes,
int  tolerance,
core::Img32s  labelImage 
)

Calculates the cutfree adjacency feature matrix.

Parameters
xyzhthe xyzh DataSegment from the PointCloudObject class
surfacesthe vector of surface id vectors
testMatrixthe initial boolean test matrix (1 test, 0 dont test, preferably an adjacency matrix)
euclideanDistancethe maximum euclidean distance for RANSAC in mm
passesthe RANSAC passes
tolerancethe RANSAC tolerance in number of points (outlier)
labelImagethe label image
Returns
the boolean cutfree adjacency matrix

◆ apply() [2/2]

math::DynMatrix<bool> icl::geom::CutfreeAdjacencyFeatureExtractor::apply ( core::DataSegment< float, 4 > &  xyzh,
std::vector< std::vector< int > > &  surfaces,
math::DynMatrix< bool > &  testMatrix,
float  euclideanDistance,
int  passes,
int  tolerance,
core::Img32s  labelImage,
std::vector< SurfaceFeatureExtractor::SurfaceFeature feature,
float  minAngle 
)

Calculates the cutfree adjacency feature matrix with minimum angle constraint.

Parameters
xyzhthe xyzh DataSegment from the PointCloudObject class
surfacesthe vector of surface id vectors
testMatrixthe initial boolean test matrix (1 test, 0 dont test, preferably an adjacency matrix)
euclideanDistancethe maximum euclidean distance for RANSAC in mm
passesthe RANSAC passes
tolerancethe RANSAC tolerance in number of points (outlier)
labelImagethe label image
featurethe surface feature for the surfaces
minAnglethe minimum angle for combination
Returns
the boolean cutfree adjacency matrix

Member Data Documentation

◆ m_data

Data* icl::geom::CutfreeAdjacencyFeatureExtractor::m_data
private

internal data type

internal data pointer


The documentation for this class was generated from the following file: