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
24
38
44
49
55
60
66
72
77
83
89
94
100
107
113
120
124
129
132MRC_API MR_OutlierParams *MR_OutlierParams_ConstructFrom(int maxClusterSize, int maxNeighbors, float minHeight, float minAngle);
133
136
139
144
147
150
156
159
162
165
170
175
178
181
186
190
195
198
201
205
208
211
216
230
236
242
250
256
262
268
274
280
285
291
297
302
308
314
319
325
329
334
339
342
345
349
352
355
360
367
368#ifdef __cplusplus
369} // extern "C"
370#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:26
struct MR_PointCloud MR_PointCloud
Definition MRCtm.h:19
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:48
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:27
@ MR_OutlierTypeMask_All
Definition MROutlierPoints.h:36
@ MR_OutlierTypeMask_SmallComponents
Small groups of points that are far from the rest.
Definition MROutlierPoints.h:29
@ MR_OutlierTypeMask_WeaklyConnected
Points far from the surface approximating the nearest points.
Definition MROutlierPoints.h:31
@ MR_OutlierTypeMask_FarSurface
Points whose normals differ from the average norm of their nearest neighbors.
Definition MROutlierPoints.h:33
@ MR_OutlierTypeMask_AwayNormal
Definition MROutlierPoints.h:35
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:23
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:43
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:23
#define MRC_API
Definition exports.h:11