ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvPointCloudInterpolator.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 class ccPointCloud;
11 
12 // Local
13 #include "CV_db.h"
14 
15 // System
16 #include <vector>
17 
18 namespace cloudViewer {
19 class GenericProgressCallback;
20 }
21 
23 public:
25  struct Parameters {
27  enum Algo { AVERAGE, MEDIAN, NORMAL_DIST };
28 
30  Algo algo = AVERAGE;
31  unsigned knn = 0;
32  float radius = 0;
33  double sigma = 0;
34  };
35 
38  ccPointCloud* destCloud,
39  ccPointCloud* srccloud,
40  const std::vector<int>& sfIndexes,
41  const Parameters& params,
43  unsigned char octreeLevel = 0);
44 };
#define CV_DB_LIB_API
Definition: CV_db.h:15
cmdLineReadable * params[]
static bool InterpolateScalarFieldsFrom(ccPointCloud *destCloud, ccPointCloud *srccloud, const std::vector< int > &sfIndexes, const Parameters &params, cloudViewer::GenericProgressCallback *progressCb=0, unsigned char octreeLevel=0)
Interpolate scalar fields from another cloud.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Generic file read and write utility for python interface.
unsigned char octreeLevel
Generic interpolation parameters.