open3d.geometry.KDTreeFlann

class open3d.geometry.KDTreeFlann

KDTree with FLANN for nearest neighbor search.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: open3d.cpu.pybind.geometry.KDTreeFlann) -> None

  2. __init__(self: open3d.cpu.pybind.geometry.KDTreeFlann, data: numpy.ndarray[float64[m, n]]) -> None

  3. __init__(self: open3d.cpu.pybind.geometry.KDTreeFlann, geometry: open3d.cpu.pybind.geometry.Geometry) -> None

  4. __init__(self: open3d.cpu.pybind.geometry.KDTreeFlann, feature: open3d::pipelines::registration::Feature) -> None

search_hybrid_vector_3d(self, query, radius, max_nn)
Parameters
  • query (numpy.ndarray[float64[3, 1]]) – The input query point.

  • radius (float) – Search radius.

  • max_nn (int) – At maximum, max_nn neighbors will be searched.

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

search_hybrid_vector_xd(self, query, radius, max_nn)
Parameters
  • query (numpy.ndarray[float64[m, 1]]) – The input query point.

  • radius (float) – Search radius.

  • max_nn (int) – At maximum, max_nn neighbors will be searched.

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

search_knn_vector_3d(self, query, knn)
Parameters
  • query (numpy.ndarray[float64[3, 1]]) – The input query point.

  • knn (int) – knn neighbors will be searched.

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

search_knn_vector_xd(self, query, knn)
Parameters
  • query (numpy.ndarray[float64[m, 1]]) – The input query point.

  • knn (int) – knn neighbors will be searched.

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

search_radius_vector_3d(self, query, radius)
Parameters
  • query (numpy.ndarray[float64[3, 1]]) – The input query point.

  • radius (float) – Search radius.

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

search_radius_vector_xd(self, query, radius)
Parameters
  • query (numpy.ndarray[float64[m, 1]]) – The input query point.

  • radius (float) – Search radius.

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

search_vector_3d(self, query, search_param)
Parameters
  • query (numpy.ndarray[float64[3, 1]]) – The input query point.

  • search_param (open3d.cpu.pybind.geometry.KDTreeSearchParam) –

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

search_vector_xd(self, query, search_param)
Parameters
  • query (numpy.ndarray[float64[m, 1]]) – The input query point.

  • search_param (open3d.cpu.pybind.geometry.KDTreeSearchParam) –

Returns

Tuple[int, open3d.cpu.pybind.utility.IntVector, open3d.cpu.pybind.utility.DoubleVector]

set_feature(self, feature)

Sets the data for the KDTree from the feature data.

Parameters

feature (open3d.pipelines.registration.Feature) – Feature data.

Returns

bool

set_geometry(self, geometry)

Sets the data for the KDTree from geometry.

Parameters

geometry (open3d.cpu.pybind.geometry.Geometry) –

Returns

bool

set_matrix_data(self, data)

Sets the data for the KDTree from a matrix.

Parameters

data (numpy.ndarray[float64[m, n]]) – Matrix data.

Returns

bool