kd-tree
More...
#include <KDTree.hpp>
|
| KDTree ()=default |
| デフォルトコンストラクタ More...
|
|
| KDTree (const dataset_type &dataset) |
| kd-tree を構築します。 More...
|
|
void | rebuildIndex () |
| ツリーを再構築します。 More...
|
|
void | release () |
| kd-tree を消去し、メモリから解放します。 More...
|
|
size_t | usedMemory () const |
| kd-tree が消費しているメモリのサイズ(バイト)を返します。 More...
|
|
Array< size_t > | knnSearch (size_t k, const point_type &point) const |
| 指定した座標から最も近い k 個の要素を検索して返します。 More...
|
|
void | knnSearch (Array< size_t > &results, size_t k, const point_type &point) const |
| 指定した座標から最も近い k 個の要素を検索して取得します。 More...
|
|
void | knnSearch (Array< size_t > &results, Array< element_type > &distanceSqResults, size_t k, const point_type &point) const |
| 指定した座標から最も近い k 個の要素を検索して取得します。 More...
|
|
Array< size_t > | radiusSearch (const point_type &point, element_type radius, SortByDistance sortByDistance=SortByDistance::No) const |
| 指定した座標から指定した半径以内にある要素一覧を検索して返します。 More...
|
|
void | radiusSearch (Array< size_t > &results, const point_type &point, element_type radius, const SortByDistance sortByDistance=SortByDistance::No) const |
| 指定した座標から指定した半径以内にある要素一覧を検索して取得します。 More...
|
|
template<class DatasetAdapter>
class s3d::KDTree< DatasetAdapter >
kd-tree
- Template Parameters
-
DatasetAdapter | kd-tree 用のアダプタ型 |
◆ adapter_type
template<class DatasetAdapter >
◆ dataset_type
template<class DatasetAdapter >
◆ element_type
template<class DatasetAdapter >
◆ point_type
template<class DatasetAdapter >
◆ KDTree() [1/2]
template<class DatasetAdapter >
◆ KDTree() [2/2]
template<class DatasetAdapter >
kd-tree を構築します。
- Parameters
-
◆ knnSearch() [1/3]
template<class DatasetAdapter >
指定した座標から最も近い k 個の要素を検索して取得します。
- Parameters
-
results | 結果を格納する配列 |
distanceSqResults | それぞれの要素について、中心からの距離を格納する配列 |
k | 検索する個数 |
point | 中心座標 |
◆ knnSearch() [2/3]
template<class DatasetAdapter >
指定した座標から最も近い k 個の要素を検索して取得します。
- Parameters
-
results | 結果を格納する配列 |
k | 検索する個数 |
point | 中心座標 |
◆ knnSearch() [3/3]
template<class DatasetAdapter >
指定した座標から最も近い k 個の要素を検索して返します。
- Parameters
-
- Returns
- 見つかった要素一覧
◆ radiusSearch() [1/2]
template<class DatasetAdapter >
指定した座標から指定した半径以内にある要素一覧を検索して取得します。
- Parameters
-
◆ radiusSearch() [2/2]
template<class DatasetAdapter >
指定した座標から指定した半径以内にある要素一覧を検索して返します。
- Parameters
-
- Returns
- 指定した位置から指定した半径以内にある要素一覧
◆ rebuildIndex()
template<class DatasetAdapter >
◆ release()
template<class DatasetAdapter >
◆ usedMemory()
template<class DatasetAdapter >
size_t s3d::KDTree< DatasetAdapter >::usedMemory |
( |
| ) |
const |
kd-tree が消費しているメモリのサイズ(バイト)を返します。
- Returns
- kd-tree が消費しているメモリのサイズ(バイト)
◆ Dimensions
template<class DatasetAdapter >
constexpr int32 s3d::KDTree< DatasetAdapter >::Dimensions = adapter_type::Dimensions |
|
staticconstexpr |
The documentation for this class was generated from the following file: