Obtaining Point by using (column, row) coordinate.
How to use pcl::PointCloud<pcl::PointXYZ>
PCL data type to get the Euclidean points x
, y
, z
by using its member function:
const PointT& pcl::PointCloud< PointT >::at(int column, int row)
and to save in output object:
pcl::PointCloud<pcl::PointXYZ> output;
tried so much but still didn't get how to get the real world coordinates of point cloud in PCL, if I could access the depth of point than by using the camera parameters I would have done but couldn't get that also. I tried this:
output.PointXYZ.p = input->const PointXYZ& pcl::PointCloud::at(34,43)
to check whether it will access pixel at (34,43)
position, it's no use.