Cleaning the dynamic memory allocated to point cloud variable.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Cleaning the dynamic memory allocated to point cloud variable.

BhanuKiran
Hi,

In my function the point cloud read from the input under goes a multiple
filtering. Is possible to assign the filtered cloud to the sample input
cloud variable.

  pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new
pcl::PointCloud<pcl::PointXYZ>);
  // Create the filtering object
  pcl::PassThrough<pcl::PointXYZ> pass;
  pass.setInputCloud (cloud);
  pass.setFilterFieldName ("z");
  pass.setFilterLimits (0.0, 1.0);
  pass.filter (*cloud);


Or Do i need to create a new cloud_filtered  variable for each filtering.
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_filtered (new
pcl::PointCloud<pcl::PointXYZ>);


Thanks.







--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users