![]() |
ImFusion SDK 4.3
|
#include <RGBD/Include/ImFusion/RGBD/RGBDSequence.h>
Interface for a single sequence of RGB-D images. More...
Interface for a single sequence of RGB-D images.
This abstract class defines the interface for handling a sequence of RGB-D frames, including access to individual frames, cloning, and camera parameter management. Implementations provide retrieval of depth and color images, timestamps, and associated camera poses.
Usage:
getFrame() to retrieve depth and color images, timestamps, and pose for a given frame index.frames() to query the number of frames in the sequence.isValid() to check if the sequence is usable.camera() and setCamera() to get or set sensor parameters.clone() to create a copy of the sequence.Important aspects:
Public Member Functions | |
| virtual | ~RGBDSequence () |
| Virtual destructor. | |
| virtual std::unique_ptr< RGBDSequence > | clone ()=0 |
| Creates a deep copy of the sequence. | |
| virtual bool | getFrame (int frame, TypedImage< float > *imgDepth, TypedImage< unsigned char > *imgColor, uint64_t *timestampDepth=nullptr, uint64_t *timestampColor=nullptr, mat4 *T=nullptr) const =0 |
| Retrieves a frame from the sequence. | |
| virtual int | frames () const =0 |
| Returns the number of frames in the sequence. | |
| virtual bool | isValid () const =0 |
| Returns whether the sequence is valid and usable. | |
| virtual const RGBDDataComponent & | camera () const =0 |
| Returns the sensor parameters as an RGBDDataComponent. | |
| virtual bool | setCamera (const RGBDDataComponent &camera)=0 |
| Sets the sensor parameters. | |
|
pure virtual |
Creates a deep copy of the sequence.
|
pure virtual |
Retrieves a frame from the sequence.
| frame | Frame index (zero-based). | |
| [out] | imgDepth | Depth image for the frame. |
| [out] | imgColor | Color image for the frame. |
| [out] | timestampDepth | Optional: timestamp for the depth image. |
| [out] | timestampColor | Optional: timestamp for the color image. |
| [out] | T | Optional: camera pose for the frame. |