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 {
26  enum Method { NEAREST_NEIGHBOR, K_NEAREST_NEIGHBORS, RADIUS };
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 
37  static bool InterpolateScalarFieldsFrom(
38  ccPointCloud* destCloud,
39  ccPointCloud* srccloud,
40  const std::vector<int>& sfIndexes,
41  const Parameters& params,
43  unsigned char octreeLevel = 0);
44 };
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
octreeLevel
unsigned char octreeLevel
Definition: qCanupoTools.cpp:38
ccPointCloudInterpolator
Definition: ecvPointCloudInterpolator.h:22
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
cloudViewer::GenericProgressCallback
Definition: GenericProgressCallback.h:20
cloudViewer::ml::impl::AVERAGE
@ AVERAGE
Definition: VoxelPooling.h:20
ccPointCloudInterpolator::Parameters
Generic interpolation parameters.
Definition: ecvPointCloudInterpolator.h:25
CV_db.h
ccPointCloudInterpolator::Parameters::Method
Method
Definition: ecvPointCloudInterpolator.h:26
ccPointCloudInterpolator::Parameters::Algo
Algo
Definition: ecvPointCloudInterpolator.h:27
CV_DB_LIB_API
#define CV_DB_LIB_API
Definition: CV_db.h:15
cloudViewer::ml::impl::NEAREST_NEIGHBOR
@ NEAREST_NEIGHBOR
Definition: VoxelPooling.h:20