MeshLib C Docs
Loading...
Searching...
No Matches
MROutlierPoints.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8#include <stdint.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct MR_PointCloud MR_PointCloud; // Defined in `#include <MRCMesh/MRPointCloud.h>`.
15typedef struct MR_expected_MR_VertBitSet_std_string MR_expected_MR_VertBitSet_std_string; // Defined in `#include <MRCMisc/expected_MR_VertBitSet_std_string.h>`.
16typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
17typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
18typedef struct MR_std_vector_uint8_t MR_std_vector_uint8_t; // Defined in `#include <MRCMisc/std_vector_uint8_t.h>`.
19
20
24
26typedef int32_t MR_OutlierTypeMask;
27enum // MR_OutlierTypeMask
28{
38};
39
44
48
54
59
65
71
76
82
88
93
99
106
112
119
123
128
131MRC_API MR_OutlierParams *MR_OutlierParams_ConstructFrom(int32_t maxClusterSize, int32_t maxNeighbors, float minHeight, float minAngle);
132
135
138
143
146
149
155
158
161
164
169
174
177
180
185
189
194
197
200
204
207
210
215
229
235
241
249
255
261
267
273
279
284
290
296
301
307
313
318
324
328
333
338
341
344
348
351
354
359
366
367#ifdef __cplusplus
368} // extern "C"
369#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_vector_uint8_t MR_std_vector_uint8_t
Definition MRBase64.h:13
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:20
struct MR_PointCloud MR_PointCloud
Definition MRCtm.h:15
struct MR_expected_MR_VertBitSet_std_string MR_expected_MR_VertBitSet_std_string
Definition MRMesh.h:46
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...
MRC_API void MR_OutlierParams_Set_maxNeighbors(MR_OutlierParams *_this, int32_t value)
int32_t MR_OutlierTypeMask
Types of outlier points.
Definition MROutlierPoints.h:26
MRC_API void MR_FindOutliersParams_Set_radius(MR_FindOutliersParams *_this, float value)
MRC_API MR_OutlierParams * MR_OutlierParams_ConstructFrom(int32_t maxClusterSize, int32_t maxNeighbors, float minHeight, float minAngle)
MRC_API MR_OutlierTypeMask MR_mul_bool_MR_OutlierTypeMask(bool a, MR_OutlierTypeMask b)
Generated from function MR::operator*.
MRC_API MR_OutliersDetector * MR_OutliersDetector_ConstructFromAnother(MR_PassBy _other_pass_by, MR_OutliersDetector *_other)
MRC_API void MR_FindOutliersParams_Set_mask(MR_FindOutliersParams *_this, MR_OutlierTypeMask value)
MRC_API MR_OutliersDetector * MR_OutliersDetector_DefaultConstructArray(size_t num_elems)
MRC_API const float * MR_FindOutliersParams_Get_radius(const MR_FindOutliersParams *_this)
MRC_API MR_OutlierTypeMask MR_bitand_MR_OutlierTypeMask(MR_OutlierTypeMask a, MR_OutlierTypeMask b)
Generated from function MR::operator&.
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...
MRC_API const MR_OutlierParams * MR_FindOutliersParams_Get_finderParams(const MR_FindOutliersParams *_this)
MRC_API MR_OutliersDetector * MR_OutliersDetector_AssignFromAnother(MR_OutliersDetector *_this, MR_PassBy _other_pass_by, MR_OutliersDetector *_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_OutliersDetector_DestroyArray(const MR_OutliersDetector *_this)
Destroys a heap-allocated array of MR_OutliersDetector. Does nothing if the pointer is null.
MRC_API MR_FindOutliersParams * MR_FindOutliersParams_DefaultConstructArray(size_t num_elems)
MRC_API void MR_OutliersDetector_setParams(MR_OutliersDetector *_this, const MR_OutlierParams *params)
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)
MRC_API int32_t * MR_OutlierParams_GetMutable_maxClusterSize(MR_OutlierParams *_this)
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 const MR_std_vector_uint8_t * MR_OutliersDetector_getWeaklyConnectedStat(MR_OutliersDetector *_this)
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...
MRC_API MR_OutlierTypeMask * MR_bitand_assign_MR_OutlierTypeMask(MR_OutlierTypeMask *a, MR_OutlierTypeMask b)
MRC_API MR_OutlierTypeMask * MR_mul_assign_MR_OutlierTypeMask_bool(MR_OutlierTypeMask *a, bool b)
MRC_API MR_OutlierTypeMask MR_bitor_MR_OutlierTypeMask(MR_OutlierTypeMask a, MR_OutlierTypeMask b)
Generated from function MR::operator|.
MRC_API float * MR_FindOutliersParams_GetMutable_radius(MR_FindOutliersParams *_this)
MRC_API MR_OutlierParams * MR_FindOutliersParams_GetMutable_finderParams(MR_FindOutliersParams *_this)
MRC_API MR_OutlierTypeMask * MR_FindOutliersParams_GetMutable_mask(MR_FindOutliersParams *_this)
struct MR_FindOutliersParams MR_FindOutliersParams
Definition MROutlierPoints.h:47
MRC_API const MR_OutlierParams * MR_OutliersDetector_getParams(const MR_OutliersDetector *_this)
MRC_API MR_OutlierParams * MR_OutlierParams_DefaultConstructArray(size_t num_elems)
MRC_API MR_FindOutliersParams * MR_FindOutliersParams_AssignFromAnother(MR_FindOutliersParams *_this, MR_PassBy _other_pass_by, MR_FindOutliersParams *_other)
MRC_API MR_OutlierTypeMask MR_compl_MR_OutlierTypeMask(MR_OutlierTypeMask a)
Generated from function MR::operator~.
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_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...
MRC_API MR_OutlierParams * MR_OutlierParams_ConstructFromAnother(const MR_OutlierParams *_other)
MRC_API MR_expected_MR_VertBitSet_std_string * MR_findOutliers(const MR_PointCloud *pc, const MR_FindOutliersParams *params)
MRC_API MR_OutlierTypeMask * MR_bitor_assign_MR_OutlierTypeMask(MR_OutlierTypeMask *a, MR_OutlierTypeMask b)
MRC_API MR_OutlierParams * MR_OutlierParams_AssignFromAnother(MR_OutlierParams *_this, const MR_OutlierParams *_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 int32_t * MR_OutlierParams_GetMutable_maxNeighbors(MR_OutlierParams *_this)
MRC_API const float * MR_OutlierParams_Get_minAngle(const MR_OutlierParams *_this)
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)
MRC_API const MR_std_function_bool_from_float * MR_FindOutliersParams_Get_progress(const MR_FindOutliersParams *_this)
MRC_API MR_OutlierParams * MR_OutlierParams_DefaultConstruct(void)
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 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_float * MR_FindOutliersParams_GetMutable_progress(MR_FindOutliersParams *_this)
MRC_API void MR_OutlierParams_Set_minAngle(MR_OutlierParams *_this, float value)
struct MR_OutlierParams MR_OutlierParams
Definition MROutlierPoints.h:23
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...
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...
MRC_API float * MR_OutlierParams_GetMutable_minAngle(MR_OutlierParams *_this)
MRC_API const float * MR_OutlierParams_Get_minHeight(const MR_OutlierParams *_this)
MRC_API const int32_t * MR_OutlierParams_Get_maxNeighbors(const MR_OutlierParams *_this)
MRC_API void MR_OutlierParams_Set_minHeight(MR_OutlierParams *_this, float value)
MRC_API MR_OutliersDetector * MR_OutliersDetector_DefaultConstruct(void)
MRC_API const MR_OutlierTypeMask * MR_FindOutliersParams_Get_mask(const MR_FindOutliersParams *_this)
MRC_API const int32_t * MR_OutlierParams_Get_maxClusterSize(const MR_OutlierParams *_this)
MRC_API float * MR_OutlierParams_GetMutable_minHeight(MR_OutlierParams *_this)
MRC_API MR_FindOutliersParams * MR_FindOutliersParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_FindOutliersParams *_other)
MRC_API MR_OutlierTypeMask MR_mul_MR_OutlierTypeMask_bool(MR_OutlierTypeMask a, bool b)
Generated from function MR::operator*.
struct MR_OutliersDetector MR_OutliersDetector
Definition MROutlierPoints.h:43
MRC_API void MR_OutlierParams_Set_maxClusterSize(MR_OutlierParams *_this, int32_t value)
MRC_API void MR_FindOutliersParams_Set_finderParams(MR_FindOutliersParams *_this, const MR_OutlierParams *value)
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)
MRC_API MR_FindOutliersParams * MR_FindOutliersParams_DefaultConstruct(void)
@ MR_OutlierTypeMask_All
Definition MROutlierPoints.h:37
@ MR_OutlierTypeMask_SmallComponents
Small groups of points that are far from the rest.
Definition MROutlierPoints.h:30
@ MR_OutlierTypeMask_WeaklyConnected
Points far from the surface approximating the nearest points.
Definition MROutlierPoints.h:32
@ MR_OutlierTypeMask_FarSurface
Points whose normals differ from the average norm of their nearest neighbors.
Definition MROutlierPoints.h:34
@ MR_OutlierTypeMask_AwayNormal
Definition MROutlierPoints.h:36
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11