I would like to know the number of points in a point cloud using PCL. The point cloud is created using pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_z(new pcl::PointCloud<pcl::PointXYZ>);
. This is then populated using a filter which basically creates a subset from a larger point cloud. The point cloud is unorganised.
I am guessing I need to return the width
, but can't figure out how to do this. Sure this is an easy answer but I am new to c++ and PCL.