Commit 014bccb8 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

create() provides an std::shared_ptr instead of a ptr.

parent ad70c109
......@@ -72,7 +72,7 @@ namespace aicp{
{
PM::TransformationParameters init_transform = parseTransformationDeg(params_.pointmatcher.initialTransform, 3);
PM::Transformation* rigid_transform = PM::get().REG(Transformation).create("RigidTransformation");
auto rigid_transform = PM::get().REG(Transformation).create("RigidTransformation");
if (!rigid_transform->checkParameters(init_transform)) {
cerr << endl
......
......@@ -26,7 +26,7 @@ float hausdorffDistance(DP &ref, DP &out, const char *filename)
params["knn"] = toParam(1); // for Hausdorff distance, we only need the first closest point
params["epsilon"] = toParam(0);
PM::Matcher* matcherHausdorff = PM::get().MatcherRegistrar.create("KDTreeMatcher", params);
auto matcherHausdorff = PM::get().MatcherRegistrar.create("KDTreeMatcher", params);
float quantile = 0.60;
......@@ -102,7 +102,7 @@ PM::Matrix distancesKNN(DP &A, DP &B, const char *filename)
params["knn"] = toParam(1); // for Hausdorff distance, we only need the first closest point
params["epsilon"] = toParam(0);
PM::Matcher* matcher = PM::get().MatcherRegistrar.create("KDTreeMatcher", params);
auto matcher = PM::get().MatcherRegistrar.create("KDTreeMatcher", params);
// from reading to reference
matcher->init(A);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment