RecFusion SDK
 All Classes Functions Variables Enumerations Enumerator
RecFusion::RFSPlayback Class Reference

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

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.
 

Detailed Description

Loads RGB-D sequences in RFS format.

Member Function Documentation

bool RecFusion::RFSPlayback::close ( )

Close sequence.

Returns
True if successful, false on error.
bool RecFusion::RFSPlayback::open ( const char *  filename)

Open sequence.

Parameters
filenamePath to RFS file
Returns
True if sequence was opened, false otherwise
bool RecFusion::RFSPlayback::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: