open3d.geometry.KDTreeFlann#

class open3d.geometry.KDTreeFlann#

KDTree with FLANN for nearest neighbor search.

__init__(*args, **kwargs)#

Overloaded function.

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

  2. __init__(self: open3d.geometry.KDTreeFlann, data: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, “[m, n]”]) -> None

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

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

search_hybrid_vector_3d(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, radius: typing.SupportsFloat, max_nn: typing.SupportsInt) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
  • query (Annotated[numpy.typing.ArrayLike, numpy.float64,) – The input query point.

  • radius (SupportsFloat) – Search radius.

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

Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

search_hybrid_vector_xd(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, radius: typing.SupportsFloat, max_nn: typing.SupportsInt) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
  • query (Annotated[numpy.typing.ArrayLike, numpy.float64,) – The input query point.

  • radius (SupportsFloat) – Search radius.

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

Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

search_knn_vector_3d(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, knn: typing.SupportsInt) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
  • query (Annotated[numpy.typing.ArrayLike, numpy.float64,) – The input query point.

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

Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

search_knn_vector_xd(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, knn: typing.SupportsInt) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
  • query (Annotated[numpy.typing.ArrayLike, numpy.float64,) – The input query point.

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

Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

search_radius_vector_3d(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, radius: typing.SupportsFloat) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
  • query (Annotated[numpy.typing.ArrayLike, numpy.float64,) – The input query point.

  • radius (SupportsFloat) – Search radius.

Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

search_radius_vector_xd(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, radius: typing.SupportsFloat) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
  • query (Annotated[numpy.typing.ArrayLike, numpy.float64,) – The input query point.

  • radius (SupportsFloat) – Search radius.

Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

search_vector_3d(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, search_param: open3d.geometry.KDTreeSearchParam) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

search_vector_xd(self: open3d.geometry.KDTreeFlann, query: typing.Annotated[numpy.typing.ArrayLike, numpy.float64, search_param: open3d.geometry.KDTreeSearchParam) tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]#
Parameters:
Returns:

tuple[int, open3d.utility.IntVector, open3d.utility.DoubleVector]

set_feature(self: open3d.geometry.KDTreeFlann, feature: open3d.pipelines.registration.Feature) bool#

Sets the data for the KDTree from the feature data.

Parameters:

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

Returns:

bool

set_geometry(self: open3d.geometry.KDTreeFlann, geometry: open3d.geometry.Geometry) bool#

Sets the data for the KDTree from geometry.

Parameters:

geometry (open3d.geometry.Geometry) –

Returns:

bool

set_matrix_data(self: open3d.geometry.KDTreeFlann, data: typing.Annotated[numpy.typing.ArrayLike, numpy.float64) bool#

Sets the data for the KDTree from a matrix.

Parameters:

data (Annotated[numpy.typing.ArrayLike, numpy.float64,) – Matrix data.

Returns:

bool