ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PCAPartition.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 
11 
12 namespace cloudViewer {
13 namespace t {
14 namespace geometry {
15 namespace kernel {
16 namespace pcapartition {
17 
23 std::tuple<int, core::Tensor> PCAPartition(core::Tensor& points,
24  int max_points);
25 
26 } // namespace pcapartition
27 } // namespace kernel
28 } // namespace geometry
29 } // namespace t
30 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Eigen.h
core::Tensor
PCAPartition.h
cloudViewer::utility::ComputeMeanAndCovariance
std::tuple< Eigen::Vector3d, Eigen::Matrix3d > ComputeMeanAndCovariance(const std::vector< Eigen::Vector3d > &points, const std::vector< IdxType > &indices)
Function to compute the mean and covariance matrix of a set of points.
Definition: Eigen.cpp:321
cloudViewer::core::Int32
const Dtype Int32
Definition: Dtype.cpp:46
cloudViewer::core::Device
Definition: Device.h:18
TensorCheck.h
cloudViewer::core::Float64
const Dtype Float64
Definition: Dtype.cpp:43
points
int points
Definition: FileIOFactory.cpp:144
cloudViewer::core::Float32
const Dtype Float32
Definition: Dtype.cpp:42
LogError
#define LogError(...)
Definition: Logging.h:60
cloudViewer::core::Tensor::Empty
static Tensor Empty(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor with uninitialized values.
Definition: Tensor.cpp:400
cloudViewer::utility::nullopt
constexpr nullopt_t nullopt
Definition: Optional.h:136
Tensor.h
AssertTensorShape
#define AssertTensorShape(tensor,...)
Definition: TensorCheck.h:61
cloudViewer::t::geometry::kernel::pcapartition::PCAPartition
std::tuple< int, core::Tensor > PCAPartition(core::Tensor &points, int max_points)
Definition: PCAPartition.cpp:83
AssertTensorDtypes
#define AssertTensorDtypes(tensor,...)
Definition: TensorCheck.h:33
cloudViewer::core::Tensor::GetDataPtr
T * GetDataPtr()
Definition: Tensor.h:1144