RecFusion SDK
RFSPlayback Class Reference

#include <RFSPlayback.h>

Loads RGB-D sequences in RFS format. More...

Detailed Description

Loads RGB-D sequences in RFS format.

Public Member Functions

 RFSPlayback ()
 Create playback object.
 
 ~RFSPlayback ()
 Destroy playback object.
 
bool open (const char *filename)
 Open sequence. More...
 
bool close ()
 Close sequence. More...
 
int frameCount () const
 Get number of frames in sequence.
 
bool readImage (int frame, DepthImage &imgDepth, ColorImage &imgColor)
 Read image from sequence. More...
 
int colorWidth () const
 Get Return width of color image.
 
int colorHeight () const
 Get height of color image.
 
int depthWidth () const
 Get Return width of depth image.
 
int depthHeight () const
 Get height of depth image.
 
Mat3 intrinsics () const
 Get sensor intrinsics.
 
Mat3 colorIntrinsics () const
 Get color sensor intrinsics.
 
Mat4 depthToColorT () const
 Get transformation between color and depth camera.
 

Member Function Documentation

◆ open()

bool open ( const char *  filename)

Open sequence.

Parameters
filenamePath to RFS file
Returns
True if sequence was opened, false otherwise

◆ close()

bool close ( )

Close sequence.

Returns
True if successful, false on error.

◆ readImage()

bool readImage ( int  frame,
DepthImage imgDepth,
ColorImage imgColor 
)

Read image from sequence.

Parameters
frameFrame number between 0 and frameCount()-1
imgDepthDepth image of size width() x height(). Contains depth measurements in mm for valid pixels and zero for other pixels upon return.
imgColorColor image of size width() x height(). Contains color data in RGB-format upon return.
Returns
True if successful, false on error.

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close