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
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_PointCloud MR_PointCloud; // Defined in `#include <MRCMesh/MRPointCloud.h>`.
14typedef struct MR_expected_MR_VertBitSet_std_string MR_expected_MR_VertBitSet_std_string; // Defined in `#include <MRCMisc/expected_MR_VertBitSet_std_string.h>`.
15typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
16typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
17typedef struct MR_std_vector_unsigned_char MR_std_vector_unsigned_char; // Defined in `#include <MRCMisc/std_vector_unsigned_char.h>`.
18
19
23
37
42
46
52
57
63
69
74
80
86
91
97
104
110
117
121
126
129MRC_API MR_OutlierParams *MR_OutlierParams_ConstructFrom(int maxClusterSize, int maxNeighbors, float minHeight, float minAngle);
130
133
136
141
144
147
153
156
159
162
167
172
175
178
183
187
192
195
198
202
205
208
213
227
233
239
247
253
259
265
271
277
282
288
294
299
305
311
316
322
326
331
336
339
342
346
349
352
357
364
365#ifdef __cplusplus
366} // extern "C"
367#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_vector_unsigned_char MR_std_vector_unsigned_char
Definition MRBase64.h:11
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:19
struct MR_PointCloud MR_PointCloud
Definition MRCtm.h:14
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_FindOutliersParams_Set_radius(MR_FindOutliersParams *_this, float value)
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 const MR_std_vector_unsigned_char * MR_OutliersDetector_getWeaklyConnectedStat(MR_OutliersDetector *_this)
MRC_API int * MR_OutlierParams_GetMutable_maxNeighbors(MR_OutlierParams *_this)
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 const int * MR_OutlierParams_Get_maxClusterSize(const MR_OutlierParams *_this)
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 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 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:45
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)
MR_OutlierTypeMask
Types of outlier points.
Definition MROutlierPoints.h:26
@ MR_OutlierTypeMask_All
Definition MROutlierPoints.h:35
@ MR_OutlierTypeMask_SmallComponents
Small groups of points that are far from the rest.
Definition MROutlierPoints.h:28
@ MR_OutlierTypeMask_WeaklyConnected
Points far from the surface approximating the nearest points.
Definition MROutlierPoints.h:30
@ MR_OutlierTypeMask_FarSurface
Points whose normals differ from the average norm of their nearest neighbors.
Definition MROutlierPoints.h:32
@ MR_OutlierTypeMask_AwayNormal
Definition MROutlierPoints.h:34
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 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_OutlierParams_Set_maxClusterSize(MR_OutlierParams *_this, int value)
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:22
MRC_API void MR_OutlierParams_Set_maxNeighbors(MR_OutlierParams *_this, int value)
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 int * MR_OutlierParams_Get_maxNeighbors(const MR_OutlierParams *_this)
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 void MR_OutlierParams_Set_minHeight(MR_OutlierParams *_this, float value)
MRC_API MR_OutlierParams * MR_OutlierParams_ConstructFrom(int maxClusterSize, int maxNeighbors, float minHeight, float minAngle)
MRC_API MR_OutliersDetector * MR_OutliersDetector_DefaultConstruct(void)
MRC_API const MR_OutlierTypeMask * MR_FindOutliersParams_Get_mask(const MR_FindOutliersParams *_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 int * MR_OutlierParams_GetMutable_maxClusterSize(MR_OutlierParams *_this)
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:41
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_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11