#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 ¶ms) |
Set search parameters. | |
MRMESH_API const OutlierParams & | getParams () 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. | |
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)
|
default |
MRMESH_API Expected< VertBitSet > MR::OutliersDetector::find | ( | OutlierTypeMask | mask, |
ProgressCallback | progress = {} ) |
Make an outlier search based on preliminary data
mask | mask of the types of outliers you are looking for |
|
inline |
Get search parameters.
|
inline |
Get statistics on the number of neighbors for each point.
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
pc | point cloud |
radius | radius of the search for neighboring points for analysis |
mask | mask of the types of outliers that are looking for |
progress | progress callback function |
MRMESH_API void MR::OutliersDetector::setParams | ( | const OutlierParams & | params | ) |
Set search parameters.