Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to standard smart pointers, part 7 #3141

Merged
merged 4 commits into from
Jun 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions common/include/pcl/pcl_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@
namespace pcl
{
// definitions used everywhere
using IndicesPtr = boost::shared_ptr <std::vector<int> >;
using IndicesConstPtr = boost::shared_ptr <const std::vector<int> >;
using Indices = std::vector<int>;
using IndicesPtr = boost::shared_ptr<Indices>;
using IndicesConstPtr = boost::shared_ptr<const Indices>;

/////////////////////////////////////////////////////////////////////////////////////////
/** \brief PCL base class. Implements methods that are used by most PCL algorithms.
Expand Down
2 changes: 1 addition & 1 deletion test/features/test_board_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ TEST (PCL, BOARDLocalReferenceFrameEstimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
PointCloud<ReferenceFrame> bunny_LRF;

boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));

// Compute normals
NormalEstimation<PointXYZ, Normal> ne;
Expand Down
2 changes: 1 addition & 1 deletion test/features/test_boundary_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ TEST (PCL, BoundaryEstimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
// set parameters
n.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
n.setSearchMethod (tree);
n.setKSearch (static_cast<int> (indices.size ()));
Expand Down
2 changes: 1 addition & 1 deletion test/features/test_curvatures_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ TEST (PCL, PrincipalCurvaturesEstimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
// set parameters
n.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
n.setSearchMethod (tree);
n.setKSearch (10); // Use 10 nearest neighbors to estimate the normals
Expand Down
2 changes: 1 addition & 1 deletion test/features/test_cvfh_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ TEST (PCL, CVFHEstimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
// set parameters
n.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
n.setSearchMethod (tree);
n.setKSearch (10); // Use 10 nearest neighbors to estimate the normals
Expand Down
2 changes: 1 addition & 1 deletion test/features/test_invariants_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ TEST (PCL, MomentInvariantsEstimation)

// set parameters
mi.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
mi.setIndices (indicesptr);
mi.setSearchMethod (tree);
mi.setKSearch (static_cast<int> (indices.size ()));
Expand Down
4 changes: 2 additions & 2 deletions test/features/test_normal_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ TEST (PCL, NormalEstimation)
PointCloud<PointXYZ>::Ptr cloudptr = cloud.makeShared ();
n.setInputCloud (cloudptr);
EXPECT_EQ (n.getInputCloud (), cloudptr);
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
EXPECT_EQ (n.getIndices (), indicesptr);
n.setSearchMethod (tree);
Expand Down Expand Up @@ -193,7 +193,7 @@ TEST (PCL, NormalEstimationOpenMP)
PointCloud<PointXYZ>::Ptr cloudptr = cloud.makeShared ();
n.setInputCloud (cloudptr);
EXPECT_EQ (n.getInputCloud (), cloudptr);
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
EXPECT_EQ (n.getIndices (), indicesptr);
n.setSearchMethod (tree);
Expand Down
14 changes: 7 additions & 7 deletions test/features/test_pfh_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static KdTreePtr tree;
template<template<class, class, class> class FeatureEstimation, typename PointT, typename NormalT, typename OutputT> void
testIndicesAndSearchSurface (const typename PointCloud<PointT>::Ptr & points,
const typename PointCloud<NormalT>::Ptr & normals,
const boost::shared_ptr<std::vector<int> > & indices, int ndims)
const pcl::IndicesPtr & indices, int ndims)

{
using KdTreeT = pcl::search::KdTree<PointT>;
Expand Down Expand Up @@ -120,7 +120,7 @@ testIndicesAndSearchSurface (const typename PointCloud<PointT>::Ptr & points,
//
PointCloud<OutputT> output3, output4;

boost::shared_ptr<std::vector<int> > indices2 (new std::vector<int> (0));
pcl::IndicesPtr indices2 (new pcl::Indices (0));
for (size_t i = 0; i < (indices->size ()/2); ++i)
indices2->push_back (static_cast<int> (i));

Expand Down Expand Up @@ -204,7 +204,7 @@ TEST (PCL, PFHEstimation)

// Object
PointCloud<PFHSignature125>::Ptr pfhs (new PointCloud<PFHSignature125> ());
boost::shared_ptr<std::vector<int> > indicesptr (new std::vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));

// set parameters
pfh.setInputCloud (cloud);
Expand Down Expand Up @@ -251,7 +251,7 @@ TEST (PCL, PFHEstimation)

// Test results when setIndices and/or setSearchSurface are used

boost::shared_ptr<std::vector<int> > test_indices (new std::vector<int> (0));
pcl::IndicesPtr test_indices (new pcl::Indices (0));
for (size_t i = 0; i < cloud->size (); i+=3)
test_indices->push_back (static_cast<int> (i));

Expand Down Expand Up @@ -391,7 +391,7 @@ TYPED_TEST (FPFHTest, Estimation)

// Object
PointCloud<FPFHSignature33>::Ptr fpfhs (new PointCloud<FPFHSignature33> ());
boost::shared_ptr<std::vector<int> > indicesptr (new std::vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));

// set parameters
fpfh.setInputCloud (cloud);
Expand Down Expand Up @@ -440,7 +440,7 @@ TYPED_TEST (FPFHTest, Estimation)

// Test results when setIndices and/or setSearchSurface are used

boost::shared_ptr<std::vector<int> > test_indices (new std::vector<int> (0));
pcl::IndicesPtr test_indices (new pcl::Indices (0));
for (size_t i = 0; i < cloud->size (); i+=3)
test_indices->push_back (static_cast<int> (i));

Expand All @@ -457,7 +457,7 @@ TEST (PCL, VFHEstimation)
// Object
pcl::VFHEstimation<PointT, PointT, VFHSignature308> vfh;
PointCloud<VFHSignature308>::Ptr vfhs (new PointCloud<VFHSignature308> ());
boost::shared_ptr<std::vector<int> > indicesptr (new std::vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));

// set parameters
vfh.setInputCloud (cloud);
Expand Down
4 changes: 2 additions & 2 deletions test/features/test_ppf_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ using namespace std;
using KdTreePtr = search::KdTree<PointXYZ>::Ptr;

PointCloud<PointXYZ> cloud;
vector<int> indices;
pcl::Indices indices;
KdTreePtr tree;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand All @@ -60,7 +60,7 @@ TEST (PCL, PPFEstimation)
NormalEstimation<PointXYZ, Normal> normal_estimation;
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
normal_estimation.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
normal_estimation.setIndices (indicesptr);
normal_estimation.setSearchMethod (tree);
normal_estimation.setKSearch (10); // Use 10 nearest neighbors to estimate the normals
Expand Down
2 changes: 1 addition & 1 deletion test/features/test_rops_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ main (int argc, char** argv)
return (-1);
}

indices = boost::shared_ptr <pcl::PointIndices> (new pcl::PointIndices ());
indices.reset (new pcl::PointIndices);
std::ifstream indices_file;
indices_file.open (argv[2], std::ifstream::in);
for (std::string line; std::getline (indices_file, line);)
Expand Down
5 changes: 1 addition & 4 deletions test/features/test_rsd_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ TEST (PCL, RSDEstimation)
rsd.setSaveHistograms (true);
rsd.compute (*rsds);

using vec_matrixXf = std::vector<Eigen::MatrixXf, Eigen::aligned_allocator<Eigen::MatrixXf> >;
boost::shared_ptr<vec_matrixXf> mat (new vec_matrixXf);

mat = rsd.getHistograms();
auto mat = rsd.getHistograms();

EXPECT_EQ (1, (*mat)[140](0, 0));
EXPECT_EQ (3, (*mat)[140](0, 1));
Expand Down
24 changes: 12 additions & 12 deletions test/features/test_shot_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ struct createSHOTDesc<UniqueShapeContext<PointT, OutputT>, PointT, NormalT, Outp
template <typename FeatureEstimation, typename PointT, typename NormalT, typename OutputT> void
testSHOTIndicesAndSearchSurface (const typename PointCloud<PointT>::Ptr & points,
const typename PointCloud<NormalT>::Ptr & normals,
const boost::shared_ptr<vector<int> > & indices,
const pcl::IndicesPtr & indices,
const int nr_shape_bins = 10,
const int nr_color_bins = 30,
const bool describe_shape = true,
Expand Down Expand Up @@ -256,7 +256,7 @@ testSHOTIndicesAndSearchSurface (const typename PointCloud<PointT>::Ptr & points
//
PointCloud<OutputT> output3, output4;

boost::shared_ptr<vector<int> > indices2 (new vector<int> (0));
pcl::IndicesPtr indices2 (new pcl::Indices (0));
for (size_t i = 0; i < (indices->size ()/2); ++i)
indices2->push_back (static_cast<int> (i));

Expand All @@ -280,7 +280,7 @@ testSHOTIndicesAndSearchSurface (const typename PointCloud<PointT>::Ptr & points
template <typename FeatureEstimation, typename PointT, typename NormalT, typename OutputT> void
testSHOTLocalReferenceFrame (const typename PointCloud<PointT>::Ptr & points,
const typename PointCloud<NormalT>::Ptr & normals,
const boost::shared_ptr<vector<int> > & indices,
const pcl::IndicesPtr & indices,
const int nr_shape_bins = 10,
const int nr_color_bins = 30,
const bool describe_shape = true,
Expand All @@ -291,7 +291,7 @@ testSHOTLocalReferenceFrame (const typename PointCloud<PointT>::Ptr & points,
typename PointCloud<PointT>::Ptr subpoints (new PointCloud<PointT> ());
copyPointCloud (*points, *indices, *subpoints);

boost::shared_ptr<vector<int> > indices2 (new vector<int> (0));
pcl::IndicesPtr indices2 (new pcl::Indices (0));
for (size_t i = 0; i < (indices->size ()/2); ++i)
indices2->push_back (static_cast<int> (i));
//
Expand Down Expand Up @@ -383,7 +383,7 @@ TYPED_TEST (SHOTShapeTest, Estimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
// set parameters
n.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
n.setSearchMethod (tree);
n.setRadiusSearch (20 * mr);
Expand Down Expand Up @@ -462,7 +462,7 @@ TYPED_TEST (SHOTShapeTest, Estimation)

// Test results when setIndices and/or setSearchSurface are used

boost::shared_ptr<vector<int> > test_indices (new vector<int> (0));
pcl::IndicesPtr test_indices (new pcl::Indices (0));
for (size_t i = 0; i < cloud.size (); i+=3)
test_indices->push_back (static_cast<int> (i));

Expand All @@ -487,7 +487,7 @@ TEST (PCL, GenericSHOTShapeEstimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
// set parameters
n.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
n.setSearchMethod (tree);
n.setRadiusSearch (20 * mr);
Expand Down Expand Up @@ -522,7 +522,7 @@ TEST (PCL, GenericSHOTShapeEstimation)
EXPECT_NEAR (shots->points[103].descriptor[123], 0.019105887, 1e-5);

// Test results when setIndices and/or setSearchSurface are used
boost::shared_ptr<vector<int> > test_indices (new vector<int> (0));
pcl::IndicesPtr test_indices (new pcl::Indices (0));
for (size_t i = 0; i < cloud.size (); i+=3)
test_indices->push_back (static_cast<int> (i));

Expand Down Expand Up @@ -572,7 +572,7 @@ TYPED_TEST (SHOTShapeAndColorTest, Estimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
// set parameters
n.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
n.setSearchMethod (tree);
n.setRadiusSearch (20 * mr);
Expand Down Expand Up @@ -676,7 +676,7 @@ TYPED_TEST (SHOTShapeAndColorTest, Estimation)
EXPECT_NEAR (shots1344->points[103].descriptor[512], 0.048375979, 1e-5);

// Test results when setIndices and/or setSearchSurface are used
boost::shared_ptr<vector<int> > test_indices (new vector<int> (0));
pcl::IndicesPtr test_indices (new pcl::Indices (0));
for (size_t i = 0; i < cloud.size (); i+=3)
test_indices->push_back (static_cast<int> (i));

Expand Down Expand Up @@ -761,7 +761,7 @@ TEST (PCL,3DSCEstimation)
EXPECT_FLOAT_EQ ((*sc3ds)[108].descriptor[1900], 43.799442f);

// Test results when setIndices and/or setSearchSurface are used
boost::shared_ptr<vector<int> > test_indices (new vector<int> (0));
pcl::IndicesPtr test_indices (new pcl::Indices (0));
for (size_t i = 0; i < cloud.size (); i++)
test_indices->push_back (static_cast<int> (i));

Expand Down Expand Up @@ -814,7 +814,7 @@ TEST (PCL, USCEstimation)
EXPECT_NEAR ((*uscds)[168].descriptor[1756], 65.1737f, 1e-4f);

// Test results when setIndices and/or setSearchSurface are used
boost::shared_ptr<vector<int> > test_indices (new vector<int> (0));
pcl::IndicesPtr test_indices (new pcl::Indices (0));
for (size_t i = 0; i < cloud.size (); i+=3)
test_indices->push_back (static_cast<int> (i));

Expand Down
2 changes: 1 addition & 1 deletion test/features/test_shot_lrf_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TEST (PCL, SHOTLocalReferenceFrameEstimation)
{
PointCloud<ReferenceFrame> bunny_LRF;

boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));

// Compute SHOT LRF
SHOTLocalReferenceFrameEstimation<PointXYZ, ReferenceFrame> lrf_estimator;
Expand Down
2 changes: 1 addition & 1 deletion test/features/test_spin_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ TEST (PCL, SpinImageEstimation)
PointCloud<Normal>::Ptr normals (new PointCloud<Normal> ());
// set parameters
n.setInputCloud (cloud.makeShared ());
boost::shared_ptr<vector<int> > indicesptr (new vector<int> (indices));
pcl::IndicesPtr indicesptr (new pcl::Indices (indices));
n.setIndices (indicesptr);
n.setSearchMethod (tree);
n.setRadiusSearch (20 * mr);
Expand Down
8 changes: 4 additions & 4 deletions test/filters/test_filters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ TEST (ExtractIndicesSelf, Filters)
{
// Test the PointCloud<PointT> method
ExtractIndices<PointXYZ> ei;
boost::shared_ptr<vector<int> > indices (new vector<int> (2));
pcl::IndicesPtr indices (new pcl::Indices (2));
(*indices)[0] = 0;
(*indices)[1] = static_cast<int> (cloud->points.size ()) - 1;

Expand All @@ -109,7 +109,7 @@ TEST (ExtractIndices, Filters)
{
// Test the PointCloud<PointT> method
ExtractIndices<PointXYZ> ei;
boost::shared_ptr<vector<int> > indices (new vector<int> (2));
pcl::IndicesPtr indices (new pcl::Indices (2));
(*indices)[0] = 0;
(*indices)[1] = static_cast<int> (cloud->points.size ()) - 1;

Expand Down Expand Up @@ -230,7 +230,7 @@ TEST (ExtractIndices, Filters)
eie.filter (result);
EXPECT_EQ (int (result.points.size ()), 0);

boost::shared_ptr<vector<int> > idx (new vector<int> (10));
pcl::IndicesPtr idx (new pcl::Indices (10));
eie.setIndices (idx);
eie.setNegative (false);
eie.filter (result);
Expand Down Expand Up @@ -1651,7 +1651,7 @@ TEST (ConditionalRemovalSetIndices, Filters)
PointCloud<PointXYZ> output;

// build some indices
boost::shared_ptr<vector<int> > indices (new vector<int> (2));
pcl::IndicesPtr indices (new pcl::Indices (2));
(*indices)[0] = 0;
(*indices)[1] = static_cast<int> (cloud->points.size ()) - 1;

Expand Down
2 changes: 1 addition & 1 deletion test/kdtree/test_kdtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ TEST (PCL, KdTreeFLANN_setPointRepresentation)
}

// Find k nearest neighbors with a different point representation
boost::shared_ptr<MyPointRepresentationXY> ptrep (new MyPointRepresentationXY);
KdTreeFLANN<MyPoint>::PointRepresentationConstPtr ptrep (new MyPointRepresentationXY);
kdtree.setPointRepresentation (ptrep);
kdtree.nearestKSearch (p, k, k_indices, k_distances);
for (int i = 0; i < k; ++i)
Expand Down
2 changes: 1 addition & 1 deletion test/keypoints/test_keypoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ TEST (PCL, SIFTKeypoint_radiusSearch)
const float scale = 0.02f;

KdTreeFLANN<PointXYZI>::Ptr tree_ (new KdTreeFLANN<PointXYZI>);
boost::shared_ptr<pcl::PointCloud<PointXYZI> > cloud = cloud_xyzi->makeShared ();
auto cloud = cloud_xyzi->makeShared ();

ApproximateVoxelGrid<PointXYZI> voxel_grid;
const float s = 1.0 * scale;
Expand Down
2 changes: 1 addition & 1 deletion test/outofcore/test_outofcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ TEST_F (OutofcoreTest, PointCloud2_Constructors)
test_cloud->points.push_back (tmp);
}

boost::shared_ptr<pcl::PCLPointCloud2> point_cloud (new pcl::PCLPointCloud2 ());
pcl::PCLPointCloud2::Ptr point_cloud (new pcl::PCLPointCloud2);

pcl::toPCLPointCloud2 (*test_cloud, *point_cloud);

Expand Down
4 changes: 2 additions & 2 deletions test/recognition/test_recognition_ism.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ TEST (ISM, TrainRecognize)
fpfh->setRadiusSearch (30.0);
pcl::Feature< pcl::PointXYZ, pcl::Histogram<153> >::Ptr feature_estimator(fpfh);

pcl::ism::ImplicitShapeModelEstimation<153, pcl::PointXYZ, pcl::Normal>::ISMModelPtr model = boost::shared_ptr<pcl::features::ISMModel> (new pcl::features::ISMModel);
pcl::ism::ImplicitShapeModelEstimation<153, pcl::PointXYZ, pcl::Normal>::ISMModelPtr model (new pcl::features::ISMModel);

pcl::ism::ImplicitShapeModelEstimation<153, pcl::PointXYZ, pcl::Normal> ism;
ism.setFeatureEstimator(feature_estimator);
Expand All @@ -84,7 +84,7 @@ TEST (ISM, TrainRecognize)
double radius = model->sigmas_[_class] * 10.0;
double sigma = model->sigmas_[_class];

boost::shared_ptr<pcl::features::ISMVoteList<pcl::PointXYZ> > vote_list = ism.findObjects (model, testing_cloud, testing_normals, _class);
auto vote_list = ism.findObjects (model, testing_cloud, testing_normals, _class);
EXPECT_NE (vote_list->getNumberOfVotes (), 0);
std::vector<pcl::ISMPeak, Eigen::aligned_allocator<pcl::ISMPeak> > strongest_peaks;
vote_list->findStrongestPeaks (strongest_peaks, _class, radius, sigma);
Expand Down
2 changes: 1 addition & 1 deletion test/registration/test_registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ TEST (PCL, IterativeClosestPoint_PointToPlane)

IterativeClosestPoint<PointT, PointT> reg;
using PointToPlane = registration::TransformationEstimationPointToPlane<PointT, PointT>;
boost::shared_ptr<PointToPlane> point_to_plane (new PointToPlane);
PointToPlane::Ptr point_to_plane (new PointToPlane);
reg.setTransformationEstimation (point_to_plane);
reg.setInputSource (src);
reg.setInputTarget (tgt);
Expand Down
Loading