ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
contrib_nns.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 
9 
10 namespace cloudViewer {
11 namespace ml {
12 namespace contrib {
13 
21 const core::Tensor KnnSearch(const core::Tensor& query_points,
22  const core::Tensor& dataset_points,
23  int knn);
24 
39 const core::Tensor RadiusSearch(const core::Tensor& query_points,
40  const core::Tensor& dataset_points,
41  const core::Tensor& query_batches,
42  const core::Tensor& dataset_batches,
43  double radius);
44 } // namespace contrib
45 } // namespace ml
46 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::core::Tensor::GetDtype
Dtype GetDtype() const
Definition: Tensor.h:1164
cloudViewer::core::Tensor::GetShape
SizeVector GetShape() const
Definition: Tensor.h:1127
core::Tensor
cloudViewer::core::Tensor::Slice
Tensor Slice(int64_t dim, int64_t start, int64_t stop, int64_t step=1) const
Definition: Tensor.cpp:857
cloudViewer::core::nns::NearestNeighborSearch::FixedRadiusIndex
bool FixedRadiusIndex(utility::optional< double > radius={})
Definition: NearestNeighborSearch.cpp:40
cloudViewer::core::Tensor::View
Tensor View(const SizeVector &dst_shape) const
Definition: Tensor.cpp:721
cloudViewer::ml::contrib::RadiusSearch
const core::Tensor RadiusSearch(const core::Tensor &query_points, const core::Tensor &dataset_points, const core::Tensor &query_batches, const core::Tensor &dataset_batches, double radius)
Definition: contrib_nns.cpp:51
cloudViewer::core::nns::NearestNeighborSearch::KnnIndex
bool KnnIndex()
Definition: NearestNeighborSearch.cpp:23
result
core::Tensor result
Definition: VtkUtils.cpp:76
Parallel.h
cloudViewer::core::Tensor::NumDims
int64_t NumDims() const
Definition: Tensor.h:1172
cloudViewer::core::nns::NearestNeighborSearch
A Class for nearest neighbor search.
Definition: NearestNeighborSearch.h:26
cloudViewer::core::Tensor::Sub
Tensor Sub(const Tensor &value) const
Substracts a tensor and returns the resulting tensor.
Definition: Tensor.cpp:1133
cloudViewer::core::Int32
const Dtype Int32
Definition: Dtype.cpp:46
cloudViewer::core::nns::NearestNeighborSearch::KnnSearch
std::pair< Tensor, Tensor > KnnSearch(const Tensor &query_points, int knn)
Definition: NearestNeighborSearch.cpp:79
cloudViewer::core::Dtype::ToString
std::string ToString() const
Definition: Dtype.h:65
NearestNeighborSearch.h
LogError
#define LogError(...)
Definition: Logging.h:60
cloudViewer::ml::contrib::KnnSearch
const core::Tensor KnnSearch(const core::Tensor &query_points, const core::Tensor &dataset_points, int knn)
Definition: contrib_nns.cpp:18
cloudViewer::core::Tensor::Item
T Item() const
Definition: Tensor.h:618
cloudViewer::core::Tensor::Sum
Tensor Sum(const SizeVector &dims, bool keepdim=false) const
Definition: Tensor.cpp:1240
cloudViewer::core::Tensor::Full
static Tensor Full(const SizeVector &shape, T fill_value, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor fill with specified value.
Definition: Tensor.h:253
cloudViewer::core::Tensor::AsRvalue
Tensor AsRvalue()
Definition: Tensor.h:558
cloudViewer::core::nns::NearestNeighborSearch::FixedRadiusSearch
std::tuple< Tensor, Tensor, Tensor > FixedRadiusSearch(const Tensor &query_points, double radius, bool sort=true)
Definition: NearestNeighborSearch.cpp:98
cloudViewer::core::Int64
const Dtype Int64
Definition: Dtype.cpp:47
cloudViewer::core::Tensor::To
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
cloudViewer::core::Tensor::GetDataPtr
T * GetDataPtr()
Definition: Tensor.h:1144