Point Cloud Library (PCL)  1.11.1-dev
icp.h
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Point Cloud Library (PCL) - www.pointclouds.org
5  * Copyright (c) 2010, Willow Garage, Inc.
6  * Copyright (c) 2012-, Open Perception, Inc.
7  *
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * * Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  * * Redistributions in binary form must reproduce the above
17  * copyright notice, this list of conditions and the following
18  * disclaimer in the documentation and/or other materials provided
19  * with the distribution.
20  * * Neither the name of the copyright holder(s) nor the names of its
21  * contributors may be used to endorse or promote products derived
22  * from this software without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
27  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
28  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
29  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
30  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
34  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35  * POSSIBILITY OF SUCH DAMAGE.
36  *
37  * $Id$
38  *
39  */
40 
41 #pragma once
42 
43 // PCL includes
44 #include <pcl/registration/correspondence_estimation.h>
45 #include <pcl/registration/default_convergence_criteria.h>
46 #include <pcl/registration/registration.h>
47 #include <pcl/registration/transformation_estimation_point_to_plane_lls.h>
48 #include <pcl/registration/transformation_estimation_svd.h>
49 #include <pcl/registration/transformation_estimation_symmetric_point_to_plane_lls.h>
50 #include <pcl/memory.h> // for dynamic_pointer_cast, pcl::make_shared, shared_ptr
51 
52 namespace pcl {
53 /** \brief @b IterativeClosestPoint provides a base implementation of the Iterative
54  * Closest Point algorithm. The transformation is estimated based on Singular Value
55  * Decomposition (SVD).
56  *
57  * The algorithm has several termination criteria:
58  *
59  * <ol>
60  * <li>Number of iterations has reached the maximum user imposed number of iterations
61  * (via \ref setMaximumIterations)</li> <li>The epsilon (difference) between the
62  * previous transformation and the current estimated transformation is smaller than an
63  * user imposed value (via \ref setTransformationEpsilon)</li> <li>The sum of Euclidean
64  * squared errors is smaller than a user defined threshold (via \ref
65  * setEuclideanFitnessEpsilon)</li>
66  * </ol>
67  *
68  *
69  * Usage example:
70  * \code
71  * IterativeClosestPoint<PointXYZ, PointXYZ> icp;
72  * // Set the input source and target
73  * icp.setInputCloud (cloud_source);
74  * icp.setInputTarget (cloud_target);
75  *
76  * // Set the max correspondence distance to 5cm (e.g., correspondences with higher
77  * distances will be ignored) icp.setMaxCorrespondenceDistance (0.05);
78  * // Set the maximum number of iterations (criterion 1)
79  * icp.setMaximumIterations (50);
80  * // Set the transformation epsilon (criterion 2)
81  * icp.setTransformationEpsilon (1e-8);
82  * // Set the euclidean distance difference epsilon (criterion 3)
83  * icp.setEuclideanFitnessEpsilon (1);
84  *
85  * // Perform the alignment
86  * icp.align (cloud_source_registered);
87  *
88  * // Obtain the transformation that aligned cloud_source to cloud_source_registered
89  * Eigen::Matrix4f transformation = icp.getFinalTransformation ();
90  * \endcode
91  *
92  * \author Radu B. Rusu, Michael Dixon
93  * \ingroup registration
94  */
95 template <typename PointSource, typename PointTarget, typename Scalar = float>
96 class IterativeClosestPoint : public Registration<PointSource, PointTarget, Scalar> {
97 public:
98  using PointCloudSource =
100  using PointCloudSourcePtr = typename PointCloudSource::Ptr;
101  using PointCloudSourceConstPtr = typename PointCloudSource::ConstPtr;
102 
103  using PointCloudTarget =
105  using PointCloudTargetPtr = typename PointCloudTarget::Ptr;
106  using PointCloudTargetConstPtr = typename PointCloudTarget::ConstPtr;
107 
110 
111  using Ptr = shared_ptr<IterativeClosestPoint<PointSource, PointTarget, Scalar>>;
112  using ConstPtr =
113  shared_ptr<const IterativeClosestPoint<PointSource, PointTarget, Scalar>>;
114 
138 
142 
143  /** \brief Empty constructor. */
145  : x_idx_offset_(0)
146  , y_idx_offset_(0)
147  , z_idx_offset_(0)
148  , nx_idx_offset_(0)
149  , ny_idx_offset_(0)
150  , nz_idx_offset_(0)
152  , source_has_normals_(false)
153  , target_has_normals_(false)
154  {
155  reg_name_ = "IterativeClosestPoint";
157  new pcl::registration::
158  TransformationEstimationSVD<PointSource, PointTarget, Scalar>());
160  new pcl::registration::
162  convergence_criteria_.reset(
165  };
166 
167  /**
168  * \brief Due to `convergence_criteria_` holding references to the class members,
169  * it is tricky to correctly implement its copy and move operations correctly. This
170  * can result in subtle bugs and to prevent them, these operations for ICP have
171  * been disabled.
172  *
173  * \todo: remove deleted ctors and assignments operations after resolving the issue
174  */
178  operator=(const IterativeClosestPoint&) = delete;
180  operator=(IterativeClosestPoint&&) = delete;
181 
182  /** \brief Empty destructor */
184 
185  /** \brief Returns a pointer to the DefaultConvergenceCriteria used by the
186  * IterativeClosestPoint class. This allows to check the convergence state after the
187  * align() method as well as to configure DefaultConvergenceCriteria's parameters not
188  * available through the ICP API before the align() method is called. Please note that
189  * the align method sets max_iterations_, euclidean_fitness_epsilon_ and
190  * transformation_epsilon_ and therefore overrides the default / set values of the
191  * DefaultConvergenceCriteria instance. \return Pointer to the IterativeClosestPoint's
192  * DefaultConvergenceCriteria.
193  */
196  {
197  return convergence_criteria_;
198  }
199 
200  /** \brief Provide a pointer to the input source
201  * (e.g., the point cloud that we want to align to the target)
202  *
203  * \param[in] cloud the input point cloud source
204  */
205  void
207  {
209  const auto fields = pcl::getFields<PointSource>();
210  source_has_normals_ = false;
211  for (const auto& field : fields) {
212  if (field.name == "x")
213  x_idx_offset_ = field.offset;
214  else if (field.name == "y")
215  y_idx_offset_ = field.offset;
216  else if (field.name == "z")
217  z_idx_offset_ = field.offset;
218  else if (field.name == "normal_x") {
219  source_has_normals_ = true;
220  nx_idx_offset_ = field.offset;
221  }
222  else if (field.name == "normal_y") {
223  source_has_normals_ = true;
224  ny_idx_offset_ = field.offset;
225  }
226  else if (field.name == "normal_z") {
227  source_has_normals_ = true;
228  nz_idx_offset_ = field.offset;
229  }
230  }
231  }
232 
233  /** \brief Provide a pointer to the input target
234  * (e.g., the point cloud that we want to align to the target)
235  *
236  * \param[in] cloud the input point cloud target
237  */
238  void
240  {
242  const auto fields = pcl::getFields<PointSource>();
243  target_has_normals_ = false;
244  for (const auto& field : fields) {
245  if (field.name == "normal_x" || field.name == "normal_y" ||
246  field.name == "normal_z") {
247  target_has_normals_ = true;
248  break;
249  }
250  }
251  }
252 
253  /** \brief Set whether to use reciprocal correspondence or not
254  *
255  * \param[in] use_reciprocal_correspondence whether to use reciprocal correspondence
256  * or not
257  */
258  inline void
259  setUseReciprocalCorrespondences(bool use_reciprocal_correspondence)
260  {
261  use_reciprocal_correspondence_ = use_reciprocal_correspondence;
262  }
263 
264  /** \brief Obtain whether reciprocal correspondence are used or not */
265  inline bool
267  {
269  }
270 
271 protected:
272  /** \brief Apply a rigid transform to a given dataset. Here we check whether whether
273  * the dataset has surface normals in addition to XYZ, and rotate normals as well.
274  * \param[in] input the input point cloud
275  * \param[out] output the resultant output point cloud
276  * \param[in] transform a 4x4 rigid transformation
277  * \note Can be used with cloud_in equal to cloud_out
278  */
279  virtual void
280  transformCloud(const PointCloudSource& input,
281  PointCloudSource& output,
282  const Matrix4& transform);
283 
284  /** \brief Rigid transformation computation method with initial guess.
285  * \param output the transformed input point cloud dataset using the rigid
286  * transformation found \param guess the initial guess of the transformation to
287  * compute
288  */
289  void
290  computeTransformation(PointCloudSource& output, const Matrix4& guess) override;
291 
292  /** \brief Looks at the Estimators and Rejectors and determines whether their
293  * blob-setter methods need to be called */
294  virtual void
296 
297  /** \brief XYZ fields offset. */
299 
300  /** \brief Normal fields offset. */
302 
303  /** \brief The correspondence type used for correspondence estimation. */
305 
306  /** \brief Internal check whether source dataset has normals or not. */
308  /** \brief Internal check whether target dataset has normals or not. */
310 
311  /** \brief Checks for whether estimators and rejectors need various data */
313 };
314 
315 /** \brief @b IterativeClosestPointWithNormals is a special case of
316  * IterativeClosestPoint, that uses a transformation estimated based on
317  * Point to Plane distances by default.
318  *
319  * By default, this implementation uses the traditional point to plane objective
320  * and computes point to plane distances using the normals of the target point
321  * cloud. It also provides the option (through setUseSymmetricObjective) of
322  * using the symmetric objective function of [Rusinkiewicz 2019]. This objective
323  * uses the normals of both the source and target point cloud and has a similar
324  * computational cost to the traditional point to plane objective while also
325  * offering improved convergence speed and a wider basin of convergence.
326  *
327  * Note that this implementation not demean the point clouds which can lead
328  * to increased numerical error. If desired, a user can demean the point cloud,
329  * run iterative closest point, and composite the resulting ICP transformation
330  * with the translations from demeaning to obtain a transformation between
331  * the original point clouds.
332  *
333  * \author Radu B. Rusu, Matthew Cong
334  * \ingroup registration
335  */
336 template <typename PointSource, typename PointTarget, typename Scalar = float>
338 : public IterativeClosestPoint<PointSource, PointTarget, Scalar> {
339 public:
340  using PointCloudSource = typename IterativeClosestPoint<PointSource,
341  PointTarget,
343  using PointCloudTarget = typename IterativeClosestPoint<PointSource,
344  PointTarget,
346  using Matrix4 =
348 
354 
355  using Ptr = shared_ptr<IterativeClosestPoint<PointSource, PointTarget, Scalar>>;
356  using ConstPtr =
357  shared_ptr<const IterativeClosestPoint<PointSource, PointTarget, Scalar>>;
358 
359  /** \brief Empty constructor. */
361  {
362  reg_name_ = "IterativeClosestPointWithNormals";
365  // correspondence_rejectors_.add
366  };
367 
368  /** \brief Empty destructor */
370 
371  /** \brief Set whether to use a symmetric objective function or not
372  *
373  * \param[in] use_symmetric_objective whether to use a symmetric objective function or
374  * not
375  */
376  inline void
377  setUseSymmetricObjective(bool use_symmetric_objective)
378  {
379  use_symmetric_objective_ = use_symmetric_objective;
381  auto symmetric_transformation_estimation = pcl::make_shared<
383  PointSource,
384  PointTarget,
385  Scalar>>();
386  symmetric_transformation_estimation->setEnforceSameDirectionNormals(
388  transformation_estimation_ = symmetric_transformation_estimation;
389  }
390  else {
393  PointTarget,
394  Scalar>());
395  }
396  }
397 
398  /** \brief Obtain whether a symmetric objective is used or not */
399  inline bool
401  {
403  }
404 
405  /** \brief Set whether or not to negate source or target normals on a per-point basis
406  * such that they point in the same direction. Only applicable to the symmetric
407  * objective function.
408  *
409  * \param[in] enforce_same_direction_normals whether to negate source or target
410  * normals on a per-point basis such that they point in the same direction.
411  */
412  inline void
413  setEnforceSameDirectionNormals(bool enforce_same_direction_normals)
414  {
415  enforce_same_direction_normals_ = enforce_same_direction_normals;
416  auto symmetric_transformation_estimation = dynamic_pointer_cast<
418  PointTarget,
419  Scalar>>(
421  if (symmetric_transformation_estimation)
422  symmetric_transformation_estimation->setEnforceSameDirectionNormals(
424  }
425 
426  /** \brief Obtain whether source or target normals are negated on a per-point basis
427  * such that they point in the same direction or not */
428  inline bool
430  {
432  }
433 
434 protected:
435  /** \brief Apply a rigid transform to a given dataset
436  * \param[in] input the input point cloud
437  * \param[out] output the resultant output point cloud
438  * \param[in] transform a 4x4 rigid transformation
439  * \note Can be used with cloud_in equal to cloud_out
440  */
441  virtual void
442  transformCloud(const PointCloudSource& input,
443  PointCloudSource& output,
444  const Matrix4& transform);
445 
446  /** \brief Type of objective function (asymmetric vs. symmetric) used for transform
447  * estimation */
449  /** \brief Whether or not to negate source and/or target normals such that they point
450  * in the same direction in the symmetric objective function */
452 };
453 
454 } // namespace pcl
455 
456 #include <pcl/registration/impl/icp.hpp>
pcl::IterativeClosestPoint< PointSource, PointTarget >::Ptr
shared_ptr< IterativeClosestPoint< PointSource, PointTarget, float > > Ptr
Definition: icp.h:111
pcl::IterativeClosestPointWithNormals::use_symmetric_objective_
bool use_symmetric_objective_
Type of objective function (asymmetric vs.
Definition: icp.h:448
pcl::IterativeClosestPoint::getConvergeCriteria
pcl::registration::DefaultConvergenceCriteria< Scalar >::Ptr getConvergeCriteria()
Returns a pointer to the DefaultConvergenceCriteria used by the IterativeClosestPoint class.
Definition: icp.h:195
pcl::Registration< PointSource, PointTarget, float >::correspondences_
CorrespondencesPtr correspondences_
The set of correspondences determined at this ICP step.
Definition: registration.h:629
pcl
Definition: convolution.h:46
pcl::IterativeClosestPoint::setUseReciprocalCorrespondences
void setUseReciprocalCorrespondences(bool use_reciprocal_correspondence)
Set whether to use reciprocal correspondence or not.
Definition: icp.h:259
pcl::make_shared
shared_ptr< T > make_shared(Args &&... args)
Returns a pcl::shared_ptr compliant with type T's allocation policy.
pcl::Registration::setInputSource
virtual void setInputSource(const PointCloudSourceConstPtr &cloud)
Provide a pointer to the input source (e.g., the point cloud that we want to align to the target)
Definition: registration.hpp:47
pcl::Registration::setInputTarget
virtual void setInputTarget(const PointCloudTargetConstPtr &cloud)
Provide a pointer to the input target (e.g., the point cloud that we want to align the input source t...
Definition: registration.hpp:61
pcl::Registration
Registration represents the base registration class for general purpose, ICP-like methods.
Definition: registration.h:57
pcl::IterativeClosestPoint::y_idx_offset_
std::size_t y_idx_offset_
Definition: icp.h:298
pcl::registration::DefaultConvergenceCriteria
DefaultConvergenceCriteria represents an instantiation of ConvergenceCriteria, and implements the fol...
Definition: default_convergence_criteria.h:65
pcl::IterativeClosestPoint::operator=
IterativeClosestPoint & operator=(const IterativeClosestPoint &)=delete
pcl::IterativeClosestPoint::need_target_blob_
bool need_target_blob_
Definition: icp.h:312
pcl::Registration< PointSource, PointTarget, float >::transformation_rotation_epsilon_
double transformation_rotation_epsilon_
The maximum rotation difference between two consecutive transformations in order to consider converge...
Definition: registration.h:598
pcl::IterativeClosestPoint< PointSource, PointTarget >::PointCloudSourcePtr
typename PointCloudSource::Ptr PointCloudSourcePtr
Definition: icp.h:100
pcl::IterativeClosestPointWithNormals::transformCloud
virtual void transformCloud(const PointCloudSource &input, PointCloudSource &output, const Matrix4 &transform)
Apply a rigid transform to a given dataset.
Definition: icp.hpp:309
pcl::IterativeClosestPointWithNormals::IterativeClosestPointWithNormals
IterativeClosestPointWithNormals()
Empty constructor.
Definition: icp.h:360
pcl::IterativeClosestPoint
IterativeClosestPoint provides a base implementation of the Iterative Closest Point algorithm.
Definition: icp.h:96
pcl::IterativeClosestPointWithNormals::setUseSymmetricObjective
void setUseSymmetricObjective(bool use_symmetric_objective)
Set whether to use a symmetric objective function or not.
Definition: icp.h:377
pcl::Registration< PointSource, PointTarget, float >::transformation_
Matrix4 transformation_
The transformation matrix estimated by the registration method.
Definition: registration.h:584
pcl::IterativeClosestPoint::use_reciprocal_correspondence_
bool use_reciprocal_correspondence_
The correspondence type used for correspondence estimation.
Definition: icp.h:304
pcl::IterativeClosestPointWithNormals::enforce_same_direction_normals_
bool enforce_same_direction_normals_
Whether or not to negate source and/or target normals such that they point in the same direction in t...
Definition: icp.h:451
pcl::IterativeClosestPoint< PointSource, PointTarget >::PointCloudTarget
typename Registration< PointSource, PointTarget, float >::PointCloudTarget PointCloudTarget
Definition: icp.h:104
pcl::registration::CorrespondenceEstimationBase< PointSource, PointTarget, float >
pcl::PCLBase< PointSource >::PointIndicesConstPtr
PointIndices::ConstPtr PointIndicesConstPtr
Definition: pcl_base.h:77
pcl::IterativeClosestPoint::setInputSource
void setInputSource(const PointCloudSourceConstPtr &cloud) override
Provide a pointer to the input source (e.g., the point cloud that we want to align to the target)
Definition: icp.h:206
pcl::IterativeClosestPointWithNormals::getUseSymmetricObjective
bool getUseSymmetricObjective() const
Obtain whether a symmetric objective is used or not.
Definition: icp.h:400
pcl::PointCloud< PointSource >
pcl::Registration::Matrix4
Eigen::Matrix< Scalar, 4, 4 > Matrix4
Definition: registration.h:59
pcl::IterativeClosestPoint::determineRequiredBlobData
virtual void determineRequiredBlobData()
Looks at the Estimators and Rejectors and determines whether their blob-setter methods need to be cal...
Definition: icp.hpp:267
pcl::IterativeClosestPoint::PointCloudSource
typename Registration< PointSource, PointTarget, Scalar >::PointCloudSource PointCloudSource
Definition: icp.h:99
pcl::registration::DefaultConvergenceCriteria::Ptr
shared_ptr< DefaultConvergenceCriteria< Scalar > > Ptr
Definition: default_convergence_criteria.h:67
pcl::IterativeClosestPointWithNormals::~IterativeClosestPointWithNormals
virtual ~IterativeClosestPointWithNormals()
Empty destructor.
Definition: icp.h:369
pcl::IterativeClosestPoint< PointSource, PointTarget >::PointCloudTargetConstPtr
typename PointCloudTarget::ConstPtr PointCloudTargetConstPtr
Definition: icp.h:106
pcl::IterativeClosestPoint::nx_idx_offset_
std::size_t nx_idx_offset_
Normal fields offset.
Definition: icp.h:301
pcl::PointIndices::ConstPtr
shared_ptr< const ::pcl::PointIndices > ConstPtr
Definition: PointIndices.h:14
pcl::IterativeClosestPointWithNormals::Ptr
shared_ptr< IterativeClosestPoint< PointSource, PointTarget, Scalar > > Ptr
Definition: icp.h:355
pcl::IterativeClosestPointWithNormals
IterativeClosestPointWithNormals is a special case of IterativeClosestPoint, that uses a transformati...
Definition: icp.h:337
pcl::IterativeClosestPointWithNormals::ConstPtr
shared_ptr< const IterativeClosestPoint< PointSource, PointTarget, Scalar > > ConstPtr
Definition: icp.h:357
pcl::IterativeClosestPoint::setInputTarget
void setInputTarget(const PointCloudTargetConstPtr &cloud) override
Provide a pointer to the input target (e.g., the point cloud that we want to align to the target)
Definition: icp.h:239
pcl::IterativeClosestPointWithNormals::getEnforceSameDirectionNormals
bool getEnforceSameDirectionNormals() const
Obtain whether source or target normals are negated on a per-point basis such that they point in the ...
Definition: icp.h:429
pcl::IterativeClosestPointWithNormals::setEnforceSameDirectionNormals
void setEnforceSameDirectionNormals(bool enforce_same_direction_normals)
Set whether or not to negate source or target normals on a per-point basis such that they point in th...
Definition: icp.h:413
pcl::IterativeClosestPoint::transformCloud
virtual void transformCloud(const PointCloudSource &input, PointCloudSource &output, const Matrix4 &transform)
Apply a rigid transform to a given dataset.
Definition: icp.hpp:50
pcl::IterativeClosestPoint::convergence_criteria_
pcl::registration::DefaultConvergenceCriteria< Scalar >::Ptr convergence_criteria_
Definition: icp.h:140
pcl::IterativeClosestPoint< PointSource, PointTarget >::PointCloudSourceConstPtr
typename PointCloudSource::ConstPtr PointCloudSourceConstPtr
Definition: icp.h:101
pcl::IterativeClosestPoint::ny_idx_offset_
std::size_t ny_idx_offset_
Definition: icp.h:301
pcl::Registration< PointSource, PointTarget, float >::correspondence_rejectors_
std::vector< CorrespondenceRejectorPtr > correspondence_rejectors_
The list of correspondence rejectors to use.
Definition: registration.h:640
pcl::registration::TransformationEstimationSymmetricPointToPlaneLLS
TransformationEstimationSymmetricPointToPlaneLLS implements a Linear Least Squares (LLS) approximatio...
Definition: transformation_estimation_symmetric_point_to_plane_lls.h:59
pcl::IterativeClosestPoint::IterativeClosestPoint
IterativeClosestPoint()
Empty constructor.
Definition: icp.h:144
pcl::registration
Definition: convergence_criteria.h:46
pcl::PointIndices::Ptr
shared_ptr< ::pcl::PointIndices > Ptr
Definition: PointIndices.h:13
pcl::IterativeClosestPoint::z_idx_offset_
std::size_t z_idx_offset_
Definition: icp.h:298
pcl::Registration< PointSource, PointTarget, float >::nr_iterations_
int nr_iterations_
The number of iterations the internal optimization ran for (used internally).
Definition: registration.h:566
pcl::IterativeClosestPoint::nz_idx_offset_
std::size_t nz_idx_offset_
Definition: icp.h:301
pcl::IterativeClosestPoint::computeTransformation
void computeTransformation(PointCloudSource &output, const Matrix4 &guess) override
Rigid transformation computation method with initial guess.
Definition: icp.hpp:114
pcl::IterativeClosestPoint::need_source_blob_
bool need_source_blob_
Checks for whether estimators and rejectors need various data.
Definition: icp.h:312
pcl::IterativeClosestPointWithNormals::PointCloudSource
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::PointCloudSource PointCloudSource
Definition: icp.h:342
pcl::IterativeClosestPoint::~IterativeClosestPoint
~IterativeClosestPoint()
Empty destructor.
Definition: icp.h:183
pcl::IterativeClosestPointWithNormals::Matrix4
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::Matrix4 Matrix4
Definition: icp.h:347
pcl::PCLBase< PointSource >::PointIndicesPtr
PointIndices::Ptr PointIndicesPtr
Definition: pcl_base.h:76
pcl::IterativeClosestPoint< PointSource, PointTarget >::PointCloudTargetPtr
typename PointCloudTarget::Ptr PointCloudTargetPtr
Definition: icp.h:105
pcl::Registration< PointSource, PointTarget, float >::transformation_estimation_
TransformationEstimationPtr transformation_estimation_
A TransformationEstimation object, used to calculate the 4x4 rigid transformation.
Definition: registration.h:633
pcl::IterativeClosestPoint::source_has_normals_
bool source_has_normals_
Internal check whether source dataset has normals or not.
Definition: icp.h:307
pcl::IterativeClosestPoint::target_has_normals_
bool target_has_normals_
Internal check whether target dataset has normals or not.
Definition: icp.h:309
pcl::IterativeClosestPoint< PointSource, PointTarget >::Matrix4
typename Registration< PointSource, PointTarget, float >::Matrix4 Matrix4
Definition: icp.h:141
pcl::IterativeClosestPoint< PointSource, PointTarget >::ConstPtr
shared_ptr< const IterativeClosestPoint< PointSource, PointTarget, float > > ConstPtr
Definition: icp.h:113
pcl::IterativeClosestPoint::getUseReciprocalCorrespondences
bool getUseReciprocalCorrespondences() const
Obtain whether reciprocal correspondence are used or not.
Definition: icp.h:266
memory.h
Defines functions, macros and traits for allocating and using memory.
pcl::Registration< PointSource, PointTarget, float >::reg_name_
std::string reg_name_
The registration method name.
Definition: registration.h:556
pcl::registration::TransformationEstimationPointToPlaneLLS
TransformationEstimationPointToPlaneLLS implements a Linear Least Squares (LLS) approximation for min...
Definition: transformation_estimation_point_to_plane_lls.h:63
pcl::IterativeClosestPointWithNormals::PointCloudTarget
typename IterativeClosestPoint< PointSource, PointTarget, Scalar >::PointCloudTarget PointCloudTarget
Definition: icp.h:345
pcl::Registration< PointSource, PointTarget, float >::correspondence_estimation_
CorrespondenceEstimationPtr correspondence_estimation_
A CorrespondenceEstimation object, used to estimate correspondences between the source and the target...
Definition: registration.h:637
pcl::IterativeClosestPoint::x_idx_offset_
std::size_t x_idx_offset_
XYZ fields offset.
Definition: icp.h:298