Class align

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class align : public rs2::filter

Auxiliary processing block that performs image alignment using depth data and camera calibration

Subclassed by rs2::gl::align

Public Functions

inline align(rs2_stream align_to)

Create align filter Alignment is performed between a depth image and another image. To perform alignment of a depth image to the other, set the align_to parameter with the other stream type. To perform alignment of a non depth image to a depth image, set the align_to parameter to RS2_STREAM_DEPTH. Camera calibration and frame’s stream type are determined on the fly, according to the first valid frameset passed to process().

Parameters:

align_to[in] The stream type to which alignment should be made.

inline frameset process(frameset frames)

Run the alignment process on the given frames to get an aligned set of frames

Parameters:

frames[in] A set of frames, where at least one of which is a depth frame

Returns:

Input frames aligned to one another

inline rs2::frame process(rs2::frame frame) const override

Ask processing block to process the frame and poll the processed frame from internal queue

Parameters:

on_frame[in] frame to be processed. return processed frame

Protected Functions

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