ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
keypoint.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 // @author Ignacio Vizzo [ivizzo@uni-bonn.de]
8 //
9 // Copyright (c) 2020 Ignacio Vizzo, Cyrill Stachniss, University of Bonn.
10 // ----------------------------------------------------------------------------
11 
12 #include <ISSKeypoint.h>
13 #include <ecvPointCloud.h>
14 
15 #include "pybind/docstring.h"
18 
19 namespace cloudViewer {
20 namespace geometry {
21 
22 void pybind_keypoint_methods(py::module &m) {
23  m.def("compute_iss_keypoints", &keypoint::ComputeISSKeypoints,
24  "Function that computes the ISS keypoints from an input point "
25  "cloud. This implements the keypoint detection modules "
26  "proposed in Yu Zhong, 'Intrinsic Shape Signatures: A Shape "
27  "Descriptor for 3D Object Recognition', 2009.",
28  "input"_a, "salient_radius"_a = 0.0, "non_max_radius"_a = 0.0,
29  "gamma_21"_a = 0.975, "gamma_32"_a = 0.975, "min_neighbors"_a = 5);
30 
32  m, "compute_iss_keypoints",
33  {{"input", "The Input point cloud."},
34  {"salient_radius",
35  "The radius of the spherical neighborhood used to detect "
36  "keypoints."},
37  {"non_max_radius", "The non maxima supression radius"},
38  {"gamma_21",
39  "The upper bound on the ratio between the second and the "
40  "first "
41  "eigenvalue returned by the EVD"},
42  {"gamma_32",
43  "The upper bound on the ratio between the third and the "
44  "second "
45  "eigenvalue returned by the EVD"},
46  {"min_neighbors",
47  "Minimum number of neighbors that has to be found to "
48  "consider a "
49  "keypoint"}});
50 }
51 
52 void pybind_keypoint(py::module &m) {
53  py::module m_submodule = m.def_submodule("keypoint", "Keypoint Detectors.");
54  pybind_keypoint_methods(m_submodule);
55 }
56 
57 } // namespace geometry
58 } // namespace cloudViewer
void FunctionDocInject(py::module &pybind_module, const std::string &function_name, const std::unordered_map< std::string, std::string > &map_parameter_body_docs)
Definition: docstring.cpp:76
std::shared_ptr< ccPointCloud > ComputeISSKeypoints(const ccPointCloud &input, double salient_radius=0.0, double non_max_radius=0.0, double gamma_21=0.975, double gamma_32=0.975, int min_neighbors=5)
Function that computes the ISS Keypoints from an input point cloud. This implements the keypoint dete...
void pybind_keypoint_methods(py::module &m)
Definition: keypoint.cpp:22
void pybind_keypoint(py::module &m)
Definition: keypoint.cpp:52
Generic file read and write utility for python interface.