Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
core
nns
NNSIndex.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - Open3D: www.open3d.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.open3d.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#pragma once
9
10
#include <vector>
11
12
#include "
open3d/core/Tensor.h
"
13
14
namespace
open3d
{
15
namespace
core
{
16
namespace
nns
{
17
21
class
NNSIndex
{
22
public
:
24
NNSIndex
() {}
25
virtual
~NNSIndex
() {}
26
NNSIndex
(
const
NNSIndex
&) =
delete
;
27
NNSIndex
&
operator=
(
const
NNSIndex
&) =
delete
;
28
29
public
:
35
virtual
bool
SetTensorData
(
const
Tensor
&dataset_points,
36
const
Dtype
&index_dtype) = 0;
37
43
virtual
bool
SetTensorData
(
const
Tensor
&dataset_points,
44
double
radius,
45
const
Dtype
&index_dtype) = 0;
46
55
virtual
std::pair<Tensor, Tensor>
SearchKnn
(
const
Tensor
&query_points,
56
int
knn)
const
= 0;
57
68
virtual
std::tuple<Tensor, Tensor, Tensor>
SearchRadius
(
69
const
Tensor
&query_points,
70
const
Tensor
&radii,
71
bool
sort)
const
= 0;
72
83
virtual
std::tuple<Tensor, Tensor, Tensor>
SearchRadius
(
84
const
Tensor
&query_points,
double
radius,
bool
sort)
const
= 0;
85
96
virtual
std::tuple<Tensor, Tensor, Tensor>
SearchHybrid
(
97
const
Tensor
&query_points,
double
radius,
int
max_knn)
const
= 0;
98
101
int
GetDimension
()
const
;
102
105
size_t
GetDatasetSize
()
const
;
106
109
Dtype
GetDtype
()
const
;
110
113
Device
GetDevice
()
const
;
114
117
Dtype
GetIndexDtype
()
const
;
118
119
protected
:
120
Tensor
dataset_points_
;
121
Dtype
index_dtype_
;
122
};
123
}
// namespace nns
124
}
// namespace core
125
}
// namespace open3d
Tensor.h
open3d::core::Device
Definition
Device.h:18
open3d::core::Dtype
Definition
Dtype.h:20
open3d::core::Tensor
Definition
Tensor.h:32
open3d::core::nns::NNSIndex::index_dtype_
Dtype index_dtype_
Definition
NNSIndex.h:121
open3d::core::nns::NNSIndex::GetDtype
Dtype GetDtype() const
Definition
NNSIndex.cpp:24
open3d::core::nns::NNSIndex::SearchRadius
virtual std::tuple< Tensor, Tensor, Tensor > SearchRadius(const Tensor &query_points, const Tensor &radii, bool sort) const =0
open3d::core::nns::NNSIndex::~NNSIndex
virtual ~NNSIndex()
Definition
NNSIndex.h:25
open3d::core::nns::NNSIndex::NNSIndex
NNSIndex(const NNSIndex &)=delete
open3d::core::nns::NNSIndex::GetDatasetSize
size_t GetDatasetSize() const
Definition
NNSIndex.cpp:19
open3d::core::nns::NNSIndex::SearchHybrid
virtual std::tuple< Tensor, Tensor, Tensor > SearchHybrid(const Tensor &query_points, double radius, int max_knn) const =0
open3d::core::nns::NNSIndex::GetDevice
Device GetDevice() const
Definition
NNSIndex.cpp:26
open3d::core::nns::NNSIndex::SetTensorData
virtual bool SetTensorData(const Tensor &dataset_points, const Dtype &index_dtype)=0
open3d::core::nns::NNSIndex::SearchRadius
virtual std::tuple< Tensor, Tensor, Tensor > SearchRadius(const Tensor &query_points, double radius, bool sort) const =0
open3d::core::nns::NNSIndex::SearchKnn
virtual std::pair< Tensor, Tensor > SearchKnn(const Tensor &query_points, int knn) const =0
open3d::core::nns::NNSIndex::dataset_points_
Tensor dataset_points_
Definition
NNSIndex.h:120
open3d::core::nns::NNSIndex::NNSIndex
NNSIndex()
Default Constructor.
Definition
NNSIndex.h:24
open3d::core::nns::NNSIndex::operator=
NNSIndex & operator=(const NNSIndex &)=delete
open3d::core::nns::NNSIndex::GetIndexDtype
Dtype GetIndexDtype() const
Definition
NNSIndex.cpp:28
open3d::core::nns::NNSIndex::GetDimension
int GetDimension() const
Definition
NNSIndex.cpp:14
open3d::core::nns::NNSIndex::SetTensorData
virtual bool SetTensorData(const Tensor &dataset_points, double radius, const Dtype &index_dtype)=0
open3d::core::nns
Definition
FixedRadiusIndex.cpp:16
open3d::core
Definition
AdvancedIndexing.cpp:15
open3d
Definition
PinholeCameraIntrinsic.cpp:16
Generated by
1.17.0