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
22
class
CV_DB_LIB_API
ccPointCloudInterpolator
{
23
public
:
25
struct
Parameters
{
26
enum
Method
{
NEAREST_NEIGHBOR
,
K_NEAREST_NEIGHBORS
, RADIUS };
27
enum
Algo
{
AVERAGE
, MEDIAN, NORMAL_DIST };
28
29
Method
method =
NEAREST_NEIGHBOR
;
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,
42
cloudViewer::GenericProgressCallback
* progressCb = 0,
43
unsigned
char
octreeLevel
= 0);
44
};
CV_db.h
CV_DB_LIB_API
#define CV_DB_LIB_API
Definition:
CV_db.h:15
ccPointCloudInterpolator
Definition:
ecvPointCloudInterpolator.h:22
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition:
ecvPointCloud.h:147
cloudViewer::GenericProgressCallback
Definition:
GenericProgressCallback.h:20
cloudViewer::ml::impl::AVERAGE
@ AVERAGE
Definition:
VoxelPooling.h:20
cloudViewer::ml::impl::NEAREST_NEIGHBOR
@ NEAREST_NEIGHBOR
Definition:
VoxelPooling.h:20
cloudViewer
Generic file read and write utility for python interface.
Definition:
CloudViewerConfig.cpp:12
octreeLevel
unsigned char octreeLevel
Definition:
qCanupoTools.cpp:38
ccPointCloudInterpolator::Parameters
Generic interpolation parameters.
Definition:
ecvPointCloudInterpolator.h:25
ccPointCloudInterpolator::Parameters::Algo
Algo
Definition:
ecvPointCloudInterpolator.h:27
ccPointCloudInterpolator::Parameters::Method
Method
Definition:
ecvPointCloudInterpolator.h:26
ccPointCloudInterpolator::Parameters::K_NEAREST_NEIGHBORS
@ K_NEAREST_NEIGHBORS
Definition:
ecvPointCloudInterpolator.h:26
libs
CV_db
include
ecvPointCloudInterpolator.h
Generated on Tue Feb 3 2026 07:12:20 for ACloudViewer by
1.9.1