Open3D (C++ API)  0.17.0
Feature.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Eigen/Core>
11 #include <memory>
12 #include <vector>
13 
15 
16 namespace open3d {
17 
18 namespace geometry {
19 class PointCloud;
20 }
21 
22 namespace pipelines {
23 namespace registration {
24 
28 class Feature {
29 public:
34  void Resize(int dim, int n) {
35  data_.resize(dim, n);
36  data_.setZero();
37  }
39  size_t Dimension() const { return data_.rows(); }
41  size_t Num() const { return data_.cols(); }
42 
43 public:
45  Eigen::MatrixXd data_;
46 };
47 
52 std::shared_ptr<Feature> ComputeFPFHFeature(
53  const geometry::PointCloud &input,
54  const geometry::KDTreeSearchParam &search_param =
56 
57 } // namespace registration
58 } // namespace pipelines
59 } // namespace open3d
Base class for KDTree search parameters.
Definition: KDTreeSearchParam.h:16
KDTree search parameters for pure KNN search.
Definition: KDTreeSearchParam.h:44
A point cloud consists of point coordinates, and optionally point colors and point normals.
Definition: PointCloud.h:36
Class to store featrues for registration.
Definition: Feature.h:28
size_t Num() const
Returns number of points.
Definition: Feature.h:41
Eigen::MatrixXd data_
Data buffer storing features.
Definition: Feature.h:45
size_t Dimension() const
Returns feature dimensions per point.
Definition: Feature.h:39
void Resize(int dim, int n)
Definition: Feature.h:34
std::shared_ptr< Feature > ComputeFPFHFeature(const geometry::PointCloud &input, const geometry::KDTreeSearchParam &search_param)
Definition: Feature.cpp:94
Definition: PinholeCameraIntrinsic.cpp:16