MeshLib Documentation
Loading...
Searching...
No Matches
MRImproveSampling.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
5
6namespace MR
7{
8
10{
12 int numIters = 1;
13
17
19 VertMap * pt2sm = nullptr;
20
23
26
28 const VertColors * ptColors = nullptr;
29
31 VertColors * smColors = nullptr;
32
35};
36
41MRMESH_API bool improveSampling( const PointCloud & cloud, VertBitSet & samples, const ImproveSamplingSettings & settings );
42
43} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::vector<T>-like container that requires specific indexing type,
Definition MRMesh/MRVector.h:20
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRMESH_API bool improveSampling(const PointCloud &cloud, VertBitSet &samples, const ImproveSamplingSettings &settings)
Definition MRCameraOrientationPlugin.h:8
Definition MRImproveSampling.h:10
ProgressCallback progress
output progress status and receive cancel signal
Definition MRImproveSampling.h:34
int numIters
the number of algorithm iterations to perform
Definition MRImproveSampling.h:12
VertMap * pt2sm
optional output: mapping from input point id to sample id
Definition MRImproveSampling.h:19
Vector< int, VertId > * ptsInSm
optional output: the number of points in each sample
Definition MRImproveSampling.h:25
int minPointsInSample
Definition MRImproveSampling.h:16
PointCloud * cloudOfSamples
optional output: new cloud containing averaged points and normals for each sample
Definition MRImproveSampling.h:22
VertColors * smColors
optional output: averaged colors of samples
Definition MRImproveSampling.h:31
const VertColors * ptColors
optional input: colors of input points
Definition MRImproveSampling.h:28
Definition MRMesh/MRPointCloud.h:16