![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <RGBDVideoReader.h>

Public Member Functions | |
| RGBDVideoReader () | |
| virtual | ~RGBDVideoReader () |
| virtual bool | IsOpened () const =0 |
| Check If the RGBD video file is opened. More... | |
| virtual bool | IsEOF () const =0 |
| Check if the RGBD video file is all read. More... | |
| virtual bool | Open (const std::string &filename)=0 |
| virtual void | Close ()=0 |
| Close the opened RGBD video playback. More... | |
| virtual RGBDVideoMetadata & | GetMetadata ()=0 |
| Get reference to the metadata of the RGBD video playback. More... | |
| virtual const RGBDVideoMetadata & | GetMetadata () const =0 |
| Get metadata of the RGBD video playback. More... | |
| virtual bool | SeekTimestamp (uint64_t timestamp)=0 |
| Seek to the timestamp (in us). More... | |
| virtual uint64_t | GetTimestamp () const =0 |
| Get current timestamp (in us). More... | |
| virtual t::geometry::RGBDImage | NextFrame ()=0 |
| Get next frame from the RGBD video playback and returns the RGBD object. More... | |
| virtual void | SaveFrames (const std::string &frame_path, uint64_t start_time_us=0, uint64_t end_time_us=UINT64_MAX) |
| virtual std::string | GetFilename () const =0 |
| Return filename being read. More... | |
| virtual std::string | ToString () const |
| Text description. More... | |
Static Public Member Functions | |
| static std::unique_ptr< RGBDVideoReader > | Create (const std::string &filename) |
| Factory function to create object based on RGBD video file type. More... | |
Definition at line 18 of file RGBDVideoReader.h.
|
inline |
Definition at line 20 of file RGBDVideoReader.h.
Referenced by cloudViewer::t::io::pybind_sensor().
|
inlinevirtual |
Definition at line 21 of file RGBDVideoReader.h.
|
pure virtual |
Close the opened RGBD video playback.
Implemented in cloudViewer::t::io::RSBagReader.
|
static |
Factory function to create object based on RGBD video file type.
Definition at line 80 of file RGBDVideoReader.cpp.
References compare, filename, LogError, and cloudViewer::utility::ToLower().
Referenced by cloudViewer::t::io::pybind_sensor().
|
pure virtual |
Return filename being read.
Implemented in cloudViewer::t::io::RSBagReader.
Referenced by ToString().
|
pure virtual |
Get metadata of the RGBD video playback.
Implemented in cloudViewer::t::io::RSBagReader.
|
pure virtual |
Get reference to the metadata of the RGBD video playback.
Implemented in cloudViewer::t::io::RSBagReader.
Referenced by SaveFrames(), and ToString().
|
pure virtual |
Get current timestamp (in us).
Implemented in cloudViewer::t::io::RSBagReader.
Referenced by SaveFrames(), and ToString().
|
pure virtual |
Check if the RGBD video file is all read.
Implemented in cloudViewer::t::io::RSBagReader.
Referenced by SaveFrames().
|
pure virtual |
Check If the RGBD video file is opened.
Implemented in cloudViewer::t::io::RSBagReader.
Referenced by SaveFrames(), and ToString().
|
pure virtual |
Get next frame from the RGBD video playback and returns the RGBD object.
Implemented in cloudViewer::t::io::RSBagReader.
Referenced by SaveFrames().
|
pure virtual |
Open an RGBD video playback.
| filename | Path to the RGBD video file. |
Implemented in cloudViewer::t::io::RSBagReader.
|
virtual |
Save synchronized and aligned individual frames to subfolders.
| frame_path | Frames will be stored in stream subfolders 'color' and 'depth' here. The intrinsic camera calibration for the color stream will be saved in 'intrinsic.json'. |
| start_time_us | (default 0) Start saving frames from this time (us) |
| end_time_us | (default video length) Save frames till this time (us) |
Definition at line 34 of file RGBDVideoReader.cpp.
References format, GetMetadata(), GetTimestamp(), IsEOF(), IsOpened(), LogError, cloudViewer::utility::filesystem::MakeDirectoryHierarchy(), NextFrame(), SeekTimestamp(), and cloudViewer::io::WriteIJsonConvertibleToJSON().
Referenced by cloudViewer::t::io::pybind_sensor().
|
pure virtual |
Seek to the timestamp (in us).
Implemented in cloudViewer::t::io::RSBagReader.
Referenced by SaveFrames().
|
virtual |
Text description.
Definition at line 23 of file RGBDVideoReader.cpp.
References format, GetFilename(), GetMetadata(), GetTimestamp(), and IsOpened().
Referenced by cloudViewer::t::io::pybind_sensor().