Skip to content

Commit

Permalink
Letting the compiler auto-deduce template parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaltyagi committed Sep 21, 2019
1 parent be85ca2 commit 57dfb4d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions filters/include/pcl/filters/impl/morphological_filter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pcl::applyMorphologicalOperator (const typename pcl::PointCloud<PointT>::ConstPt
if (cloud_in->empty ())
return;

pcl::copyPointCloud<PointT, PointT> (*cloud_in, cloud_out);
pcl::copyPointCloud (*cloud_in, cloud_out);

pcl::octree::OctreePointCloudSearch<PointT> tree (resolution);

Expand Down Expand Up @@ -116,7 +116,7 @@ pcl::applyMorphologicalOperator (const typename pcl::PointCloud<PointT>::ConstPt
{
pcl::PointCloud<PointT> cloud_temp;

pcl::copyPointCloud<PointT, PointT> (*cloud_in, cloud_temp);
pcl::copyPointCloud (*cloud_in, cloud_temp);

for (size_t p_idx = 0; p_idx < cloud_temp.points.size (); ++p_idx)
{
Expand Down
2 changes: 1 addition & 1 deletion keypoints/include/pcl/keypoints/impl/brisk_2d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pcl::BriskKeypoint2D<PointInT, PointOutT, IntensityT>::detectKeypoints (PointClo
brisk_scale_space.constructPyramid (image_data, width, height);
pcl::PointCloud<pcl::PointWithScale> output_temp;
brisk_scale_space.getKeypoints (threshold_, output_temp.points);
pcl::copyPointCloud<pcl::PointWithScale, PointOutT> (output_temp, output);
pcl::copyPointCloud (output_temp, output);

// we do not change the denseness
output.width = int (output.points.size ());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pcl::GeometricConsistencyGrouping<PointModelT, PointSceneT>::clusterCorresponden

//temp copy of scene cloud with the type cast to ModelT in order to use Ransac
PointCloudPtr temp_scene_cloud_ptr (new PointCloud ());
pcl::copyPointCloud<PointSceneT, PointModelT> (*scene_, *temp_scene_cloud_ptr);
pcl::copyPointCloud (*scene_, *temp_scene_cloud_ptr);

pcl::registration::CorrespondenceRejectorSampleConsensus<PointModelT> corr_rejector;
corr_rejector.setMaximumIterations (10000);
Expand Down
4 changes: 2 additions & 2 deletions recognition/include/pcl/recognition/impl/cg/hough_3d.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pcl::Hough3DGrouping<PointModelT, PointSceneT, PointModelRfT, PointSceneRfT>::cl
// Insert maximas into result vector, after Ransac correspondence rejection
// Temp copy of scene cloud with the type cast to ModelT in order to use Ransac
PointCloudPtr temp_scene_cloud_ptr (new PointCloud);
pcl::copyPointCloud<PointSceneT, PointModelT> (*scene_, *temp_scene_cloud_ptr);
pcl::copyPointCloud (*scene_, *temp_scene_cloud_ptr);

pcl::registration::CorrespondenceRejectorSampleConsensus<PointModelT> corr_rejector;
corr_rejector.setMaximumIterations (10000);
Expand Down Expand Up @@ -355,7 +355,7 @@ pcl::Hough3DGrouping<PointModelT, PointSceneT, PointModelRfT, PointSceneRfT>::re

//// Temp copy of scene cloud with the type cast to ModelT in order to use Ransac
//PointCloudPtr temp_scene_cloud_ptr (new PointCloud);
//pcl::copyPointCloud<PointSceneT, PointModelT> (*scene_, *temp_scene_cloud_ptr);
//pcl::copyPointCloud (*scene_, *temp_scene_cloud_ptr);

//for (size_t i = 0; i < model_instances.size (); ++i)
//{
Expand Down
4 changes: 2 additions & 2 deletions test/io/test_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ TEST (PCL, CopyPointCloud)
cloud_b.points[i].rgba = 255;
}

pcl::copyPointCloud<pcl::PointXYZ, pcl::PointXYZRGBA> (cloud_a, cloud_b);
pcl::copyPointCloud (cloud_a, cloud_b);

for (size_t i = 0; i < cloud_a.points.size (); ++i)
{
Expand All @@ -1047,7 +1047,7 @@ TEST (PCL, CopyPointCloud)
cloud_a.points[i].x = cloud_a.points[i].y = cloud_a.points[i].z = 0;
}

pcl::copyPointCloud<pcl::PointXYZRGBA, pcl::PointXYZ> (cloud_b, cloud_a);
pcl::copyPointCloud (cloud_b, cloud_a);

for (size_t i = 0; i < cloud_a.points.size (); ++i)
{
Expand Down

0 comments on commit 57dfb4d

Please sign in to comment.