|
Open3D (C++ API)
0.19.0
|
#include <NNSIndex.h>
Public Member Functions | |
| NNSIndex () | |
| Default Constructor. | |
| virtual | ~NNSIndex () |
| NNSIndex (const NNSIndex &)=delete | |
| NNSIndex & | operator= (const NNSIndex &)=delete |
| virtual bool | SetTensorData (const Tensor &dataset_points, const Dtype &index_dtype)=0 |
| virtual bool | SetTensorData (const Tensor &dataset_points, double radius, const Dtype &index_dtype)=0 |
| virtual std::pair< Tensor, Tensor > | SearchKnn (const Tensor &query_points, int knn) const =0 |
| virtual std::tuple< Tensor, Tensor, Tensor > | SearchRadius (const Tensor &query_points, const Tensor &radii, bool sort) const =0 |
| virtual std::tuple< Tensor, Tensor, Tensor > | SearchRadius (const Tensor &query_points, double radius, bool sort) const =0 |
| virtual std::tuple< Tensor, Tensor, Tensor > | SearchHybrid (const Tensor &query_points, double radius, int max_knn) const =0 |
| int | GetDimension () const |
| size_t | GetDatasetSize () const |
| Dtype | GetDtype () const |
| Device | GetDevice () const |
| Dtype | GetIndexDtype () const |
Protected Attributes | |
| Tensor | dataset_points_ |
| Dtype | index_dtype_ |
|
inline |
Default Constructor.
|
inlinevirtual |
|
delete |
| size_t open3d::core::nns::NNSIndex::GetDatasetSize | ( | ) | const |
Get size of the dataset points.
| Device open3d::core::nns::NNSIndex::GetDevice | ( | ) | const |
Get device of the dataset points.
| int open3d::core::nns::NNSIndex::GetDimension | ( | ) | const |
Get dimension of the dataset points.
| Dtype open3d::core::nns::NNSIndex::GetDtype | ( | ) | const |
Get dtype of the dataset points.
| Dtype open3d::core::nns::NNSIndex::GetIndexDtype | ( | ) | const |
Get dtype of indices.
|
pure virtual |
Perform hybrid search.
| query_points | Query points. Must be 2D, with shape {n, d}. |
| radius | Radius. |
| max_knn | Maximum number of neighbor to search per query point. |
Implemented in open3d::core::nns::FixedRadiusIndex, open3d::core::nns::KnnIndex, and open3d::core::nns::NanoFlannIndex.
|
pure virtual |
Perform K nearest neighbor search.
| query_points | Query points. Must be 2D, with shape {n, d}, same dtype with dataset_points. |
| knn | Number of nearest neighbor to search. |
Implemented in open3d::core::nns::FixedRadiusIndex, open3d::core::nns::KnnIndex, and open3d::core::nns::NanoFlannIndex.
|
pure virtual |
Perform radius search with multiple radii.
| query_points | Query points. Must be 2D, with shape {n, d}, same dtype with dataset_points. |
| radii | list of radius. Must be 1D, with shape {n, }. |
Implemented in open3d::core::nns::FixedRadiusIndex, open3d::core::nns::KnnIndex, and open3d::core::nns::NanoFlannIndex.
|
pure virtual |
Perform radius search.
| query_points | Query points. Must be 2D, with shape {n, d}, same dtype with dataset_points. |
| radius | Radius. |
Implemented in open3d::core::nns::FixedRadiusIndex, open3d::core::nns::KnnIndex, and open3d::core::nns::NanoFlannIndex.
|
pure virtual |
Set the data for the nearest neighbor search.
| dataset_points | Dataset points for KDTree construction. Must be 2D, with shape {n, d}. |
Implemented in open3d::core::nns::FixedRadiusIndex, open3d::core::nns::KnnIndex, and open3d::core::nns::NanoFlannIndex.
|
pure virtual |
Set the data for the nearest neighbor search.
| dataset_points | Dataset points for KDTree construction. Must be 2D, with shape {n, d}. |
Implemented in open3d::core::nns::FixedRadiusIndex, open3d::core::nns::KnnIndex, and open3d::core::nns::NanoFlannIndex.
|
protected |
|
protected |