Skip to content

Commit 6b0fc48

Browse files
MaximSmolskiymvieth
authored andcommitted
Remove unnecessary calculations from NDT constructor
1 parent fe4c32d commit 6b0fc48

File tree

1 file changed

+0
-9
lines changed
  • registration/include/pcl/registration/impl

1 file changed

+0
-9
lines changed

registration/include/pcl/registration/impl/ndt.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ NormalDistributionsTransform<PointSource, PointTarget, Scalar>::
5050
{
5151
reg_name_ = "NormalDistributionsTransform";
5252

53-
// Initializes the gaussian fitting parameters (eq. 6.8) [Magnusson 2009]
54-
const double gauss_c1 = 10.0 * (1 - outlier_ratio_);
55-
const double gauss_c2 = outlier_ratio_ / pow(resolution_, 3);
56-
const double gauss_d3 = -std::log(gauss_c2);
57-
gauss_d1_ = -std::log(gauss_c1 + gauss_c2) - gauss_d3;
58-
gauss_d2_ =
59-
-2 * std::log((-std::log(gauss_c1 * std::exp(-0.5) + gauss_c2) - gauss_d3) /
60-
gauss_d1_);
61-
6253
transformation_epsilon_ = 0.1;
6354
max_iterations_ = 35;
6455
}

0 commit comments

Comments
 (0)