MeshLib C Docs
Loading...
Searching...
No Matches
MROutlierPoints.h File Reference
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct MR_PointCloud MR_PointCloud
 
typedef struct MR_expected_MR_VertBitSet_std_string MR_expected_MR_VertBitSet_std_string
 
typedef struct MR_expected_void_std_string MR_expected_void_std_string
 
typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float
 
typedef struct MR_std_vector_uint8_t MR_std_vector_uint8_t
 
typedef struct MR_OutlierParams MR_OutlierParams
 
typedef int32_t MR_OutlierTypeMask
 Types of outlier points.
 
typedef struct MR_OutliersDetector MR_OutliersDetector
 
typedef struct MR_FindOutliersParams MR_FindOutliersParams
 

Enumerations

enum  {
  MR_OutlierTypeMask_SmallComponents = 1 , MR_OutlierTypeMask_WeaklyConnected = 2 , MR_OutlierTypeMask_FarSurface = 4 , MR_OutlierTypeMask_AwayNormal = 8 ,
  MR_OutlierTypeMask_All = 15
}
 

Functions

MRC_API const int32_t * MR_OutlierParams_Get_maxClusterSize (const MR_OutlierParams *_this)
 
MRC_API void MR_OutlierParams_Set_maxClusterSize (MR_OutlierParams *_this, int32_t value)
 
MRC_API int32_t * MR_OutlierParams_GetMutable_maxClusterSize (MR_OutlierParams *_this)
 
MRC_API const int32_t * MR_OutlierParams_Get_maxNeighbors (const MR_OutlierParams *_this)
 
MRC_API void MR_OutlierParams_Set_maxNeighbors (MR_OutlierParams *_this, int32_t value)
 
MRC_API int32_t * MR_OutlierParams_GetMutable_maxNeighbors (MR_OutlierParams *_this)
 
MRC_API const float * MR_OutlierParams_Get_minHeight (const MR_OutlierParams *_this)
 
MRC_API void MR_OutlierParams_Set_minHeight (MR_OutlierParams *_this, float value)
 
MRC_API float * MR_OutlierParams_GetMutable_minHeight (MR_OutlierParams *_this)
 
MRC_API const float * MR_OutlierParams_Get_minAngle (const MR_OutlierParams *_this)
 
MRC_API void MR_OutlierParams_Set_minAngle (MR_OutlierParams *_this, float value)
 
MRC_API float * MR_OutlierParams_GetMutable_minAngle (MR_OutlierParams *_this)
 
MRC_API MR_OutlierParamsMR_OutlierParams_DefaultConstruct (void)
 
MRC_API MR_OutlierParamsMR_OutlierParams_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_OutlierParamsMR_OutlierParams_ConstructFrom (int32_t maxClusterSize, int32_t maxNeighbors, float minHeight, float minAngle)
 
MRC_API const MR_OutlierParamsMR_OutlierParams_OffsetPtr (const MR_OutlierParams *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_OutlierParamsMR_OutlierParams_OffsetMutablePtr (MR_OutlierParams *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_OutlierParamsMR_OutlierParams_ConstructFromAnother (const MR_OutlierParams *_other)
 
MRC_API void MR_OutlierParams_Destroy (const MR_OutlierParams *_this)
 Destroys a heap-allocated instance of MR_OutlierParams. Does nothing if the pointer is null.
 
MRC_API void MR_OutlierParams_DestroyArray (const MR_OutlierParams *_this)
 Destroys a heap-allocated array of MR_OutlierParams. Does nothing if the pointer is null.
 
MRC_API MR_OutlierParamsMR_OutlierParams_AssignFromAnother (MR_OutlierParams *_this, const MR_OutlierParams *_other)
 
MRC_API MR_OutlierTypeMask MR_bitand_MR_OutlierTypeMask (MR_OutlierTypeMask a, MR_OutlierTypeMask b)
 Generated from function MR::operator&.
 
MRC_API MR_OutlierTypeMask MR_bitor_MR_OutlierTypeMask (MR_OutlierTypeMask a, MR_OutlierTypeMask b)
 Generated from function MR::operator|.
 
MRC_API MR_OutlierTypeMask MR_compl_MR_OutlierTypeMask (MR_OutlierTypeMask a)
 Generated from function MR::operator~.
 
MRC_API MR_OutlierTypeMaskMR_bitand_assign_MR_OutlierTypeMask (MR_OutlierTypeMask *a, MR_OutlierTypeMask b)
 
MRC_API MR_OutlierTypeMaskMR_bitor_assign_MR_OutlierTypeMask (MR_OutlierTypeMask *a, MR_OutlierTypeMask b)
 
MRC_API MR_OutlierTypeMask MR_mul_MR_OutlierTypeMask_bool (MR_OutlierTypeMask a, bool b)
 Generated from function MR::operator*.
 
MRC_API MR_OutlierTypeMask MR_mul_bool_MR_OutlierTypeMask (bool a, MR_OutlierTypeMask b)
 Generated from function MR::operator*.
 
MRC_API MR_OutlierTypeMaskMR_mul_assign_MR_OutlierTypeMask_bool (MR_OutlierTypeMask *a, bool b)
 
MRC_API MR_OutliersDetectorMR_OutliersDetector_DefaultConstruct (void)
 
MRC_API MR_OutliersDetectorMR_OutliersDetector_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_OutliersDetectorMR_OutliersDetector_OffsetPtr (const MR_OutliersDetector *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_OutliersDetectorMR_OutliersDetector_OffsetMutablePtr (MR_OutliersDetector *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_OutliersDetectorMR_OutliersDetector_ConstructFromAnother (MR_PassBy _other_pass_by, MR_OutliersDetector *_other)
 
MRC_API void MR_OutliersDetector_Destroy (const MR_OutliersDetector *_this)
 Destroys a heap-allocated instance of MR_OutliersDetector. Does nothing if the pointer is null.
 
MRC_API void MR_OutliersDetector_DestroyArray (const MR_OutliersDetector *_this)
 Destroys a heap-allocated array of MR_OutliersDetector. Does nothing if the pointer is null.
 
MRC_API MR_OutliersDetectorMR_OutliersDetector_AssignFromAnother (MR_OutliersDetector *_this, MR_PassBy _other_pass_by, MR_OutliersDetector *_other)
 
MRC_API MR_expected_void_std_stringMR_OutliersDetector_prepare (MR_OutliersDetector *_this, const MR_PointCloud *pc, float radius, MR_OutlierTypeMask mask, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
 
MRC_API void MR_OutliersDetector_setParams (MR_OutliersDetector *_this, const MR_OutlierParams *params)
 
MRC_API const MR_OutlierParamsMR_OutliersDetector_getParams (const MR_OutliersDetector *_this)
 
MRC_API MR_expected_MR_VertBitSet_std_stringMR_OutliersDetector_find (MR_OutliersDetector *_this, MR_OutlierTypeMask mask, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
 
MRC_API const MR_std_vector_uint8_tMR_OutliersDetector_getWeaklyConnectedStat (MR_OutliersDetector *_this)
 
MRC_API const MR_OutlierParamsMR_FindOutliersParams_Get_finderParams (const MR_FindOutliersParams *_this)
 
MRC_API void MR_FindOutliersParams_Set_finderParams (MR_FindOutliersParams *_this, const MR_OutlierParams *value)
 
MRC_API MR_OutlierParamsMR_FindOutliersParams_GetMutable_finderParams (MR_FindOutliersParams *_this)
 
MRC_API const float * MR_FindOutliersParams_Get_radius (const MR_FindOutliersParams *_this)
 
MRC_API void MR_FindOutliersParams_Set_radius (MR_FindOutliersParams *_this, float value)
 
MRC_API float * MR_FindOutliersParams_GetMutable_radius (MR_FindOutliersParams *_this)
 
MRC_API const MR_OutlierTypeMaskMR_FindOutliersParams_Get_mask (const MR_FindOutliersParams *_this)
 
MRC_API void MR_FindOutliersParams_Set_mask (MR_FindOutliersParams *_this, MR_OutlierTypeMask value)
 
MRC_API MR_OutlierTypeMaskMR_FindOutliersParams_GetMutable_mask (MR_FindOutliersParams *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_FindOutliersParams_Get_progress (const MR_FindOutliersParams *_this)
 
MRC_API void MR_FindOutliersParams_Set_progress (MR_FindOutliersParams *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
 
MRC_API MR_std_function_bool_from_floatMR_FindOutliersParams_GetMutable_progress (MR_FindOutliersParams *_this)
 
MRC_API MR_FindOutliersParamsMR_FindOutliersParams_DefaultConstruct (void)
 
MRC_API MR_FindOutliersParamsMR_FindOutliersParams_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_FindOutliersParamsMR_FindOutliersParams_ConstructFrom (const MR_OutlierParams *finderParams, float radius, MR_OutlierTypeMask mask, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
 
MRC_API const MR_FindOutliersParamsMR_FindOutliersParams_OffsetPtr (const MR_FindOutliersParams *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_FindOutliersParamsMR_FindOutliersParams_OffsetMutablePtr (MR_FindOutliersParams *ptr, ptrdiff_t i)
 Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.
 
MRC_API MR_FindOutliersParamsMR_FindOutliersParams_ConstructFromAnother (MR_PassBy _other_pass_by, MR_FindOutliersParams *_other)
 
MRC_API void MR_FindOutliersParams_Destroy (const MR_FindOutliersParams *_this)
 Destroys a heap-allocated instance of MR_FindOutliersParams. Does nothing if the pointer is null.
 
MRC_API void MR_FindOutliersParams_DestroyArray (const MR_FindOutliersParams *_this)
 Destroys a heap-allocated array of MR_FindOutliersParams. Does nothing if the pointer is null.
 
MRC_API MR_FindOutliersParamsMR_FindOutliersParams_AssignFromAnother (MR_FindOutliersParams *_this, MR_PassBy _other_pass_by, MR_FindOutliersParams *_other)
 
MRC_API MR_expected_MR_VertBitSet_std_stringMR_findOutliers (const MR_PointCloud *pc, const MR_FindOutliersParams *params)
 

Typedef Documentation

◆ MR_expected_MR_VertBitSet_std_string

◆ MR_expected_void_std_string

◆ MR_FindOutliersParams

Outlier point search parameters Generated from class MR::FindOutliersParams.

◆ MR_OutlierParams

Parameters of various criteria for detecting outlier points Generated from class MR::OutlierParams.

◆ MR_OutliersDetector

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) Generated from class MR::OutliersDetector.

◆ MR_OutlierTypeMask

typedef int32_t MR_OutlierTypeMask

Types of outlier points.

◆ MR_PointCloud

typedef struct MR_PointCloud MR_PointCloud

◆ MR_std_function_bool_from_float

◆ MR_std_vector_uint8_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MR_OutlierTypeMask_SmallComponents 

Small groups of points that are far from the rest.

Points that have too few neighbors within the radius

MR_OutlierTypeMask_WeaklyConnected 

Points far from the surface approximating the nearest points.

MR_OutlierTypeMask_FarSurface 

Points whose normals differ from the average norm of their nearest neighbors.

MR_OutlierTypeMask_AwayNormal 
MR_OutlierTypeMask_All 

Function Documentation

◆ MR_bitand_assign_MR_OutlierTypeMask()

MRC_API MR_OutlierTypeMask * MR_bitand_assign_MR_OutlierTypeMask ( MR_OutlierTypeMask * a,
MR_OutlierTypeMask b )

Generated from function MR::operator&=. Parameter a can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_bitand_MR_OutlierTypeMask()

MRC_API MR_OutlierTypeMask MR_bitand_MR_OutlierTypeMask ( MR_OutlierTypeMask a,
MR_OutlierTypeMask b )

Generated from function MR::operator&.

◆ MR_bitor_assign_MR_OutlierTypeMask()

MRC_API MR_OutlierTypeMask * MR_bitor_assign_MR_OutlierTypeMask ( MR_OutlierTypeMask * a,
MR_OutlierTypeMask b )

Generated from function MR::operator|=. Parameter a can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_bitor_MR_OutlierTypeMask()

MRC_API MR_OutlierTypeMask MR_bitor_MR_OutlierTypeMask ( MR_OutlierTypeMask a,
MR_OutlierTypeMask b )

Generated from function MR::operator|.

◆ MR_compl_MR_OutlierTypeMask()

MRC_API MR_OutlierTypeMask MR_compl_MR_OutlierTypeMask ( MR_OutlierTypeMask a)

Generated from function MR::operator~.

◆ MR_findOutliers()

MRC_API MR_expected_MR_VertBitSet_std_string * MR_findOutliers ( const MR_PointCloud * pc,
const MR_FindOutliersParams * params )

Finding outlier points Generated from function MR::findOutliers. Parameter pc can not be null. It is a single object. Parameter params can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_VertBitSet_std_string_Destroy() to free it when you're done using it.

◆ MR_FindOutliersParams_AssignFromAnother()

MRC_API MR_FindOutliersParams * MR_FindOutliersParams_AssignFromAnother ( MR_FindOutliersParams * _this,
MR_PassBy _other_pass_by,
MR_FindOutliersParams * _other )

Generated from a method of class MR::FindOutliersParams named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_FindOutliersParams_ConstructFrom()

MRC_API MR_FindOutliersParams * MR_FindOutliersParams_ConstructFrom ( const MR_OutlierParams * finderParams,
float radius,
MR_OutlierTypeMask mask,
MR_PassBy progress_pass_by,
MR_std_function_bool_from_float * progress )

Constructs MR::FindOutliersParams elementwise. Parameter finderParams can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_FindOutliersParams_Destroy() to free it when you're done using it.

◆ MR_FindOutliersParams_ConstructFromAnother()

MRC_API MR_FindOutliersParams * MR_FindOutliersParams_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_FindOutliersParams * _other )

Generated from a constructor of class MR::FindOutliersParams. Never returns null. Returns an instance allocated on the heap! Must call MR_FindOutliersParams_Destroy() to free it when you're done using it.

◆ MR_FindOutliersParams_DefaultConstruct()

MRC_API MR_FindOutliersParams * MR_FindOutliersParams_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_FindOutliersParams_Destroy() to free it when you're done using it.

◆ MR_FindOutliersParams_DefaultConstructArray()

MRC_API MR_FindOutliersParams * MR_FindOutliersParams_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_FindOutliersParams_DestroyArray(). Use MR_FindOutliersParams_OffsetMutablePtr() and MR_FindOutliersParams_OffsetPtr() to access the array elements.

◆ MR_FindOutliersParams_Destroy()

MRC_API void MR_FindOutliersParams_Destroy ( const MR_FindOutliersParams * _this)

Destroys a heap-allocated instance of MR_FindOutliersParams. Does nothing if the pointer is null.

◆ MR_FindOutliersParams_DestroyArray()

MRC_API void MR_FindOutliersParams_DestroyArray ( const MR_FindOutliersParams * _this)

Destroys a heap-allocated array of MR_FindOutliersParams. Does nothing if the pointer is null.

◆ MR_FindOutliersParams_Get_finderParams()

MRC_API const MR_OutlierParams * MR_FindOutliersParams_Get_finderParams ( const MR_FindOutliersParams * _this)

Parameters of various criteria for detecting outlier points Modifies a member variable of class MR::FindOutliersParams named finderParams. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object.

◆ MR_FindOutliersParams_Get_mask()

MRC_API const MR_OutlierTypeMask * MR_FindOutliersParams_Get_mask ( const MR_FindOutliersParams * _this)

Mask of the types of outliers that are looking for Modifies a member variable of class MR::FindOutliersParams named mask. Parameter _this can not be null. It is a single object.

◆ MR_FindOutliersParams_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_FindOutliersParams_Get_progress ( const MR_FindOutliersParams * _this)

Progress callback Modifies a member variable of class MR::FindOutliersParams named progress. Parameter _this can not be null. It is a single object.

◆ MR_FindOutliersParams_Get_radius()

MRC_API const float * MR_FindOutliersParams_Get_radius ( const MR_FindOutliersParams * _this)

Radius of the search for neighboring points for analysis Modifies a member variable of class MR::FindOutliersParams named radius. Parameter _this can not be null. It is a single object.

◆ MR_FindOutliersParams_GetMutable_finderParams()

MRC_API MR_OutlierParams * MR_FindOutliersParams_GetMutable_finderParams ( MR_FindOutliersParams * _this)

Radius of the search for neighboring points for analysis Returns a pointer to a member variable of class MR::FindOutliersParams named radius. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_FindOutliersParams_GetMutable_mask()

MRC_API MR_OutlierTypeMask * MR_FindOutliersParams_GetMutable_mask ( MR_FindOutliersParams * _this)

Progress callback Returns a pointer to a member variable of class MR::FindOutliersParams named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_FindOutliersParams_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_FindOutliersParams_GetMutable_progress ( MR_FindOutliersParams * _this)

◆ MR_FindOutliersParams_GetMutable_radius()

MRC_API float * MR_FindOutliersParams_GetMutable_radius ( MR_FindOutliersParams * _this)

Mask of the types of outliers that are looking for Returns a pointer to a member variable of class MR::FindOutliersParams named mask. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_FindOutliersParams_OffsetMutablePtr()

MRC_API MR_FindOutliersParams * MR_FindOutliersParams_OffsetMutablePtr ( MR_FindOutliersParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_FindOutliersParams_OffsetPtr()

MRC_API const MR_FindOutliersParams * MR_FindOutliersParams_OffsetPtr ( const MR_FindOutliersParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_FindOutliersParams_Set_finderParams()

MRC_API void MR_FindOutliersParams_Set_finderParams ( MR_FindOutliersParams * _this,
const MR_OutlierParams * value )

Parameters of various criteria for detecting outlier points Returns a mutable pointer to a member variable of class MR::FindOutliersParams named finderParams. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_FindOutliersParams_Set_mask()

MRC_API void MR_FindOutliersParams_Set_mask ( MR_FindOutliersParams * _this,
MR_OutlierTypeMask value )

Mask of the types of outliers that are looking for Returns a mutable pointer to a member variable of class MR::FindOutliersParams named mask. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_FindOutliersParams_Set_progress()

MRC_API void MR_FindOutliersParams_Set_progress ( MR_FindOutliersParams * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

Progress callback Returns a mutable pointer to a member variable of class MR::FindOutliersParams named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_FindOutliersParams_Set_radius()

MRC_API void MR_FindOutliersParams_Set_radius ( MR_FindOutliersParams * _this,
float value )

Radius of the search for neighboring points for analysis Returns a mutable pointer to a member variable of class MR::FindOutliersParams named radius. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_mul_assign_MR_OutlierTypeMask_bool()

MRC_API MR_OutlierTypeMask * MR_mul_assign_MR_OutlierTypeMask_bool ( MR_OutlierTypeMask * a,
bool b )

Generated from function MR::operator*=. Parameter a can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_mul_bool_MR_OutlierTypeMask()

MRC_API MR_OutlierTypeMask MR_mul_bool_MR_OutlierTypeMask ( bool a,
MR_OutlierTypeMask b )

Generated from function MR::operator*.

◆ MR_mul_MR_OutlierTypeMask_bool()

MRC_API MR_OutlierTypeMask MR_mul_MR_OutlierTypeMask_bool ( MR_OutlierTypeMask a,
bool b )

Generated from function MR::operator*.

◆ MR_OutlierParams_AssignFromAnother()

MRC_API MR_OutlierParams * MR_OutlierParams_AssignFromAnother ( MR_OutlierParams * _this,
const MR_OutlierParams * _other )

Generated from a method of class MR::OutlierParams named operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_ConstructFrom()

MRC_API MR_OutlierParams * MR_OutlierParams_ConstructFrom ( int32_t maxClusterSize,
int32_t maxNeighbors,
float minHeight,
float minAngle )

Constructs MR::OutlierParams elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_OutlierParams_Destroy() to free it when you're done using it.

◆ MR_OutlierParams_ConstructFromAnother()

MRC_API MR_OutlierParams * MR_OutlierParams_ConstructFromAnother ( const MR_OutlierParams * _other)

Generated from a constructor of class MR::OutlierParams. Parameter _other can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_OutlierParams_Destroy() to free it when you're done using it.

◆ MR_OutlierParams_DefaultConstruct()

MRC_API MR_OutlierParams * MR_OutlierParams_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_OutlierParams_Destroy() to free it when you're done using it.

◆ MR_OutlierParams_DefaultConstructArray()

MRC_API MR_OutlierParams * MR_OutlierParams_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_OutlierParams_DestroyArray(). Use MR_OutlierParams_OffsetMutablePtr() and MR_OutlierParams_OffsetPtr() to access the array elements.

◆ MR_OutlierParams_Destroy()

MRC_API void MR_OutlierParams_Destroy ( const MR_OutlierParams * _this)

Destroys a heap-allocated instance of MR_OutlierParams. Does nothing if the pointer is null.

◆ MR_OutlierParams_DestroyArray()

MRC_API void MR_OutlierParams_DestroyArray ( const MR_OutlierParams * _this)

Destroys a heap-allocated array of MR_OutlierParams. Does nothing if the pointer is null.

◆ MR_OutlierParams_Get_maxClusterSize()

MRC_API const int32_t * MR_OutlierParams_Get_maxClusterSize ( const MR_OutlierParams * _this)

Maximum points in the outlier component Returns a pointer to a member variable of class MR::OutlierParams named maxClusterSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_Get_maxNeighbors()

MRC_API const int32_t * MR_OutlierParams_Get_maxNeighbors ( const MR_OutlierParams * _this)

Maximum number of adjacent points for an outlier point Returns a pointer to a member variable of class MR::OutlierParams named maxNeighbors. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_Get_minAngle()

MRC_API const float * MR_OutlierParams_Get_minAngle ( const MR_OutlierParams * _this)

Minimum angle of difference of normal at outlier points

Note
available only if there are normals Returns a pointer to a member variable of class MR::OutlierParams named minAngle. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_Get_minHeight()

MRC_API const float * MR_OutlierParams_Get_minHeight ( const MR_OutlierParams * _this)

Minimum distance (as proportion of search radius) to the approximate surface from outliers point Returns a pointer to a member variable of class MR::OutlierParams named minHeight. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_GetMutable_maxClusterSize()

MRC_API int32_t * MR_OutlierParams_GetMutable_maxClusterSize ( MR_OutlierParams * _this)

Maximum points in the outlier component Returns a mutable pointer to a member variable of class MR::OutlierParams named maxClusterSize. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_GetMutable_maxNeighbors()

MRC_API int32_t * MR_OutlierParams_GetMutable_maxNeighbors ( MR_OutlierParams * _this)

Maximum number of adjacent points for an outlier point Returns a mutable pointer to a member variable of class MR::OutlierParams named maxNeighbors. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_GetMutable_minAngle()

MRC_API float * MR_OutlierParams_GetMutable_minAngle ( MR_OutlierParams * _this)

Minimum angle of difference of normal at outlier points

Note
available only if there are normals Returns a mutable pointer to a member variable of class MR::OutlierParams named minAngle. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_GetMutable_minHeight()

MRC_API float * MR_OutlierParams_GetMutable_minHeight ( MR_OutlierParams * _this)

Minimum distance (as proportion of search radius) to the approximate surface from outliers point Returns a mutable pointer to a member variable of class MR::OutlierParams named minHeight. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutlierParams_OffsetMutablePtr()

MRC_API MR_OutlierParams * MR_OutlierParams_OffsetMutablePtr ( MR_OutlierParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_OutlierParams_OffsetPtr()

MRC_API const MR_OutlierParams * MR_OutlierParams_OffsetPtr ( const MR_OutlierParams * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_OutlierParams_Set_maxClusterSize()

MRC_API void MR_OutlierParams_Set_maxClusterSize ( MR_OutlierParams * _this,
int32_t value )

Maximum points in the outlier component Modifies a member variable of class MR::OutlierParams named maxClusterSize. Parameter _this can not be null. It is a single object.

◆ MR_OutlierParams_Set_maxNeighbors()

MRC_API void MR_OutlierParams_Set_maxNeighbors ( MR_OutlierParams * _this,
int32_t value )

Maximum number of adjacent points for an outlier point Modifies a member variable of class MR::OutlierParams named maxNeighbors. Parameter _this can not be null. It is a single object.

◆ MR_OutlierParams_Set_minAngle()

MRC_API void MR_OutlierParams_Set_minAngle ( MR_OutlierParams * _this,
float value )

Minimum angle of difference of normal at outlier points

Note
available only if there are normals Modifies a member variable of class MR::OutlierParams named minAngle. Parameter _this can not be null. It is a single object.

◆ MR_OutlierParams_Set_minHeight()

MRC_API void MR_OutlierParams_Set_minHeight ( MR_OutlierParams * _this,
float value )

Minimum distance (as proportion of search radius) to the approximate surface from outliers point Modifies a member variable of class MR::OutlierParams named minHeight. Parameter _this can not be null. It is a single object.

◆ MR_OutliersDetector_AssignFromAnother()

MRC_API MR_OutliersDetector * MR_OutliersDetector_AssignFromAnother ( MR_OutliersDetector * _this,
MR_PassBy _other_pass_by,
MR_OutliersDetector * _other )

Generated from a method of class MR::OutliersDetector named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutliersDetector_ConstructFromAnother()

MRC_API MR_OutliersDetector * MR_OutliersDetector_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_OutliersDetector * _other )

Generated from a constructor of class MR::OutliersDetector. Never returns null. Returns an instance allocated on the heap! Must call MR_OutliersDetector_Destroy() to free it when you're done using it.

◆ MR_OutliersDetector_DefaultConstruct()

MRC_API MR_OutliersDetector * MR_OutliersDetector_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_OutliersDetector_Destroy() to free it when you're done using it.

◆ MR_OutliersDetector_DefaultConstructArray()

MRC_API MR_OutliersDetector * MR_OutliersDetector_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_OutliersDetector_DestroyArray(). Use MR_OutliersDetector_OffsetMutablePtr() and MR_OutliersDetector_OffsetPtr() to access the array elements.

◆ MR_OutliersDetector_Destroy()

MRC_API void MR_OutliersDetector_Destroy ( const MR_OutliersDetector * _this)

Destroys a heap-allocated instance of MR_OutliersDetector. Does nothing if the pointer is null.

◆ MR_OutliersDetector_DestroyArray()

MRC_API void MR_OutliersDetector_DestroyArray ( const MR_OutliersDetector * _this)

Destroys a heap-allocated array of MR_OutliersDetector. Does nothing if the pointer is null.

◆ MR_OutliersDetector_find()

MRC_API MR_expected_MR_VertBitSet_std_string * MR_OutliersDetector_find ( MR_OutliersDetector * _this,
MR_OutlierTypeMask mask,
MR_PassBy progress_pass_by,
MR_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 a method of class MR::OutliersDetector named find. Parameter _this can not be null. It is a single object. Parameter progress has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_VertBitSet_std_string_Destroy() to free it when you're done using it.

◆ MR_OutliersDetector_getParams()

MRC_API const MR_OutlierParams * MR_OutliersDetector_getParams ( const MR_OutliersDetector * _this)

Get search parameters Generated from a method of class MR::OutliersDetector named getParams. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutliersDetector_getWeaklyConnectedStat()

MRC_API const MR_std_vector_uint8_t * MR_OutliersDetector_getWeaklyConnectedStat ( MR_OutliersDetector * _this)

Get statistics on the number of neighbors for each point Generated from a method of class MR::OutliersDetector named getWeaklyConnectedStat. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. Parameters of various criteria for detecting outlier points Returns a pointer to a member variable of class MR::FindOutliersParams named finderParams. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_OutliersDetector_OffsetMutablePtr()

MRC_API MR_OutliersDetector * MR_OutliersDetector_OffsetMutablePtr ( MR_OutliersDetector * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_OutliersDetector_OffsetPtr()

MRC_API const MR_OutliersDetector * MR_OutliersDetector_OffsetPtr ( const MR_OutliersDetector * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element.

◆ MR_OutliersDetector_prepare()

MRC_API MR_expected_void_std_string * MR_OutliersDetector_prepare ( MR_OutliersDetector * _this,
const MR_PointCloud * pc,
float radius,
MR_OutlierTypeMask mask,
MR_PassBy progress_pass_by,
MR_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 a method of class MR::OutliersDetector named prepare. Parameter _this can not be null. It is a single object. Parameter pc can not be null. It is a single object. Parameter progress has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_OutliersDetector_setParams()

MRC_API void MR_OutliersDetector_setParams ( MR_OutliersDetector * _this,
const MR_OutlierParams * params )

Set search parameters Generated from a method of class MR::OutliersDetector named setParams. Parameter _this can not be null. It is a single object. Parameter params can not be null. It is a single object.