Skip to content

[Question] From registered libfreenect2::Frame to pcl::Pointcloud<pcl::PointXYZRGBA> #392

@Tabjones

Description

@Tabjones

Hello everyone, first of all thanks for the amazing work.

I'm looking at Protonect.cpp source code and i see that after registration->apply(rgb, depth, &undistorted, &registered); (line 203) I should have a color-depth registered image in registered Frame. In fact that same frame gets sent to the viewer for the user to see.

Now what i want to do is convert that frame into a PointCloud class (from pcl library), as far as i know it should contain all the necessary information to construct a point cloud: it has width, height and data.

My question is, how can I access the data pointer to extract euclidean coordinates (x,y,z) and the color associated with each point ?
Are there already some helper functions doing this that i'm missing ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions