CVB++ 14.0
DensePointCloudSegmentor Class Referenceabstract

Base class for segmentor object to configure and compute segmentation on dense point clouds. More...

#include <cvb/foundation/metric_aqs12.hpp>

Inherited by AQS12DensePointCloudSegmentor.

Public Member Functions

int WindowSize () const
 Gets window size for calculation of normals (used for the classification of the target faces). More...
 
void SetWindowSize (int windowSize) const
 Sets window size for the calculation of normals (used for the classification of the target faces). More...
 
void * Handle () const noexcept
 Returns C-API style handle to Node Object. More...
 

Static Public Member Functions

static std::shared_ptr< DensePointCloudSegmentorFromHandle (HandleGuard< DensePointCloudSegmentor > &&guard)
 Creates a segmentor from a classic API handle. More...
 

Detailed Description

Base class for segmentor object to configure and compute segmentation on dense point clouds.

Member Function Documentation

◆ FromHandle()

std::shared_ptr< DensePointCloudSegmentor > FromHandle ( HandleGuard< DensePointCloudSegmentor > &&  guard)
inlinestatic

Creates a segmentor from a classic API handle.

Parameters
[in]guardLife time guard for C-API handle.
Returns
The segmentor created from the classic API handle.
Exceptions
Anyexception derived from std::exception including CvbException.

The segmentor takes ownership of the handle, so you must share it before using this function.

◆ Handle()

void * Handle ( ) const
inlinenoexcept

Returns C-API style handle to Node Object.

Returns
C-API handle

◆ SetWindowSize()

void SetWindowSize ( int  windowSize) const
inline

Sets window size for the calculation of normals (used for the classification of the target faces).

If WindowSize is set to zero, the window size will be calculated automatically. If it is an even number, it will be extended with one.

Note
This function only apply for dense point cloud segmentors, where the segmentation method #KmeansClustering is applied.
Parameters
[in]windowSizeSide length of squared window.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ WindowSize()

int WindowSize ( ) const
inline

Gets window size for calculation of normals (used for the classification of the target faces).

If WindowSize is set to zero, the window size will be calculated automatically.

Note
This function only apply for dense point cloud segmentors, where the segmentation method #KmeansClustering is applied.
Returns
Side length of squared window.
Exceptions
Anyexception derived from std::exception including CvbException.