MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.OutliersDetector Class Reference
Inheritance diagram for meshlib.OutliersDetector:

Public Member Functions

 OutliersDetector (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 OutliersDetector ()
 OutliersDetector (meshlib.OutliersDetector _other)
meshlib.OutliersDetector assignFromAnother (meshlib.OutliersDetector _other)
void prepare (meshlib.PointCloud pc, float radius, meshlib.OutlierTypeMask mask, meshlib.std_function_bool_from_float progress)
void setParams (meshlib.OutlierParams params)
meshlib.OutlierParams getParams ()
meshlib.VertBitSet find (meshlib.OutlierTypeMask mask, meshlib.std_function_bool_from_float progress)
meshlib.std_vector_unsigned_char getWeaklyConnectedStat ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

A class for searching for outliers of points

The class caches the prepared search results, which allows to speed up the repeat search (while use same radius) Generated from class MR::OutliersDetector.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ OutliersDetector() [1/3]

meshlib.OutliersDetector.OutliersDetector ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ OutliersDetector() [2/3]

meshlib.OutliersDetector.OutliersDetector ( )

Constructs an empty (default-constructed) instance.

Calls MR_OutliersDetector_DefaultConstruct().

◆ OutliersDetector() [3/3]

meshlib.OutliersDetector.OutliersDetector ( meshlib.OutliersDetector _other)

Generated from constructor MR::OutliersDetector::OutliersDetector. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_OutliersDetector_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.OutliersDetector meshlib.OutliersDetector.assignFromAnother ( meshlib.OutliersDetector _other)

Generated from method MR::OutliersDetector::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_OutliersDetector_AssignFromAnother().

◆ find()

meshlib.VertBitSet meshlib.OutliersDetector.find ( meshlib.OutlierTypeMask mask,
meshlib.std_function_bool_from_float progress )

Make an outlier search based on preliminary data

Parameters
maskmask of the types of outliers you are looking for Generated from method MR::OutliersDetector::find.

Calls MR_OutliersDetector_find(). The C++ function returns expected<MR::VertBitSet, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ getParams()

meshlib.OutlierParams meshlib.OutliersDetector.getParams ( )

Get search parameters Generated from method MR::OutliersDetector::getParams.

Calls MR_OutliersDetector_getParams().

◆ getWeaklyConnectedStat()

meshlib.std_vector_unsigned_char meshlib.OutliersDetector.getWeaklyConnectedStat ( )

Get statistics on the number of neighbors for each point Generated from method MR::OutliersDetector::getWeaklyConnectedStat.

Calls MR_OutliersDetector_getWeaklyConnectedStat().

◆ prepare()

void meshlib.OutliersDetector.prepare ( meshlib.PointCloud pc,
float radius,
meshlib.OutlierTypeMask mask,
meshlib.std_function_bool_from_float 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 Generated from method MR::OutliersDetector::prepare.

Calls MR_OutliersDetector_prepare(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ setParams()

void meshlib.OutliersDetector.setParams ( meshlib.OutlierParams params)

Set search parameters Generated from method MR::OutliersDetector::setParams.

Calls MR_OutliersDetector_setParams().


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