Class pointcloud

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class pointcloud : public rs2::filter

Generates 3D point clouds based on a depth frame. Can also map textures from a color frame.

Subclassed by rs2::gl::pointcloud

Public Functions

inline pointcloud()

create pointcloud instance

inline pointcloud(rs2_stream stream, int index = 0)
inline points calculate(frame depth) const

Generate the pointcloud and texture mappings of depth map.

Parameters:

depth[in] - the depth frame to generate point cloud and texture.

Returns:

points instance.

inline void map_to(frame mapped)

Map the point cloud to the given color frame.

Parameters:

mapped[in] - the frame to be mapped to as texture.

Protected Functions

inline pointcloud(std::shared_ptr<rs2_processing_block> block)