Open3D (C++ API)
FastGlobalRegistration.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // The MIT License (MIT)
5 //
6 // Copyright (c) 2018 www.open3d.org
7 //
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
9 // of this software and associated documentation files (the "Software"), to deal
10 // in the Software without restriction, including without limitation the rights
11 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 // copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
14 //
15 // The above copyright notice and this permission notice shall be included in
16 // all copies or substantial portions of the Software.
17 //
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 // IN THE SOFTWARE.
25 // ----------------------------------------------------------------------------
26 
27 #pragma once
28 
29 #include <Eigen/Core>
30 #include <Eigen/Geometry>
31 #include <tuple>
32 #include <vector>
33 
34 namespace open3d {
35 
36 namespace geometry {
37 class PointCloud;
38 }
39 
40 namespace registration {
41 
42 class Feature;
43 class RegistrationResult;
44 
49 public:
63  FastGlobalRegistrationOption(double division_factor = 1.4,
64  bool use_absolute_scale = false,
65  bool decrease_mu = true,
66  double maximum_correspondence_distance = 0.025,
67  int iteration_number = 64,
68  double tuple_scale = 0.95,
69  int maximum_tuple_count = 1000)
70  : division_factor_(division_factor),
71  use_absolute_scale_(use_absolute_scale),
72  decrease_mu_(decrease_mu),
73  maximum_correspondence_distance_(maximum_correspondence_distance),
74  iteration_number_(iteration_number),
75  tuple_scale_(tuple_scale),
76  maximum_tuple_count_(maximum_tuple_count) {}
78 
79 public:
94  double tuple_scale_;
97 };
98 
100  const geometry::PointCloud &source,
101  const geometry::PointCloud &target,
102  const Feature &source_feature,
103  const Feature &target_feature,
104  const FastGlobalRegistrationOption &option =
106 
107 } // namespace registration
108 } // namespace open3d
Options for FastGlobalRegistration.
Definition: FastGlobalRegistration.h:48
FastGlobalRegistrationOption(double division_factor=1.4, bool use_absolute_scale=false, bool decrease_mu=true, double maximum_correspondence_distance=0.025, int iteration_number=64, double tuple_scale=0.95, int maximum_tuple_count=1000)
Parameterized Constructor.
Definition: FastGlobalRegistration.h:63
A point cloud consists of point coordinates, and optionally point colors and point normals...
Definition: PointCloud.h:54
~FastGlobalRegistrationOption()
Definition: FastGlobalRegistration.h:77
Definition: Registration.h:112
Definition: Open3DViewer.h:29
bool decrease_mu_
Definition: FastGlobalRegistration.h:87
bool use_absolute_scale_
Definition: FastGlobalRegistration.h:84
int iteration_number_
Maximum number of iterations.
Definition: FastGlobalRegistration.h:92
double maximum_correspondence_distance_
Definition: FastGlobalRegistration.h:90
int maximum_tuple_count_
Maximum number of tuples..
Definition: FastGlobalRegistration.h:96
Class to store featrues for registration.
Definition: Feature.h:46
RegistrationResult FastGlobalRegistration(const geometry::PointCloud &source, const geometry::PointCloud &target, const Feature &source_feature, const Feature &target_feature, const FastGlobalRegistrationOption &option)
Definition: FastGlobalRegistration.cpp:336
double division_factor_
Division factor used for graduated non-convexity.
Definition: FastGlobalRegistration.h:81
double tuple_scale_
Similarity measure used for tuples of feature points.
Definition: FastGlobalRegistration.h:94