MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::OutliersDetector Class Reference

#include <MROutlierPoints.h>

Public Member Functions

 OutliersDetector ()=default
 
MRMESH_API Expected< void > prepare (const PointCloud &pc, float radius, OutlierTypeMask mask, ProgressCallback progress={})
 
MRMESH_API void setParams (const OutlierParams &params)
 Set search parameters.
 
MRMESH_API const OutlierParamsgetParams () const
 Get search parameters.
 
MRMESH_API Expected< VertBitSet > find (OutlierTypeMask mask, ProgressCallback progress={})
 
MRMESH_API const std::vector< uint8_t > & getWeaklyConnectedStat ()
 Get statistics on the number of neighbors for each point.
 

Detailed Description

A class for searching for outliers of points @detail The class caches the prepared search results, which allows to speed up the repeat search (while use same radius)

Constructor & Destructor Documentation

◆ OutliersDetector()

MR::OutliersDetector::OutliersDetector ( )
default

Member Function Documentation

◆ find()

MRMESH_API Expected< VertBitSet > MR::OutliersDetector::find ( OutlierTypeMask mask,
ProgressCallback progress = {} )

Make an outlier search based on preliminary data

Parameters
maskmask of the types of outliers you are looking for

◆ getParams()

MRMESH_API const OutlierParams & MR::OutliersDetector::getParams ( ) const
inline

Get search parameters.

◆ getWeaklyConnectedStat()

MRMESH_API const std::vector< uint8_t > & MR::OutliersDetector::getWeaklyConnectedStat ( )
inline

Get statistics on the number of neighbors for each point.

◆ prepare()

MRMESH_API Expected< void > MR::OutliersDetector::prepare ( const PointCloud & pc,
float radius,
OutlierTypeMask mask,
ProgressCallback progress = {} )

Make a preliminary stage of outlier search. Caches the result

Parameters
pcpoint cloud
radiusradius of the search for neighboring points for analysis
maskmask of the types of outliers that are looking for
progressprogress callback function
Returns
error text or nothing

◆ setParams()

MRMESH_API void MR::OutliersDetector::setParams ( const OutlierParams & params)

Set search parameters.


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