75 OutlierParams params_;
78 UnionFind<VertId> unionFindStructure_;
79 std::vector<uint8_t> weaklyConnectedStat_;
80 std::vector<float> farSurfaceStat_;
81 std::vector<float> badNormalStat_;
85 VertBitSet validPoints_;
#define MR_MAKE_FLAG_OPERATORS(T)
Generates operators for a enum (at namespace scope).
Definition MRFlagOperators.h:6
Definition MROutlierPoints.h:43
MRMESH_API Expected< VertBitSet > find(OutlierTypeMask mask, ProgressCallback progress={})
MRMESH_API Expected< void > prepare(const PointCloud &pc, float radius, OutlierTypeMask mask, ProgressCallback progress={})
MRMESH_API const OutlierParams & getParams() const
Get search parameters.
Definition MROutlierPoints.h:59
float minHeight
Minimum distance (as proportion of search radius) to the approximate surface from outliers point.
Definition MROutlierPoints.h:23
float radius
Radius of the search for neighboring points for analysis.
Definition MROutlierPoints.h:92
OutliersDetector()=default
tl::expected< T, E > Expected
Definition MRExpected.h:31
float minAngle
Definition MROutlierPoints.h:26
OutlierTypeMask mask
Mask of the types of outliers that are looking for.
Definition MROutlierPoints.h:94
MRMESH_API Expected< VertBitSet > findOutliers(const PointCloud &pc, const FindOutliersParams ¶ms)
Finding outlier points.
OutlierParams finderParams
Parameters of various criteria for detecting outlier points.
Definition MROutlierPoints.h:91
int maxNeighbors
Maximum number of adjacent points for an outlier point.
Definition MROutlierPoints.h:21
ProgressCallback progress
Progress callback.
Definition MROutlierPoints.h:96
MRMESH_API void setParams(const OutlierParams ¶ms)
calculate caches
OutlierTypeMask
Types of outlier points.
Definition MROutlierPoints.h:31
MRMESH_API const std::vector< uint8_t > & getWeaklyConnectedStat()
unite and calculate actual outliers
Definition MROutlierPoints.h:66
int maxClusterSize
Maximum points in the outlier component.
Definition MROutlierPoints.h:19
@ AwayNormal
Points whose normals differ from the average norm of their nearest neighbors.
@ WeaklyConnected
Points that have too few neighbors within the radius.
@ SmallComponents
Small groups of points that are far from the rest.
@ FarSurface
Points far from the surface approximating the nearest points.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Outlier point search parameters.
Definition MROutlierPoints.h:90
Parameters of various criteria for detecting outlier points.
Definition MROutlierPoints.h:17
Definition MRPointCloud.h:17