Open3D (C++ API)
0.18.0+252c867
|
#include <RSBagReader.h>
Public Member Functions | |
RSBagReader (size_t buffer_size=DEFAULT_BUFFER_SIZE) | |
RSBagReader (const RSBagReader &)=delete | |
RSBagReader & | operator= (const RSBagReader &)=delete |
virtual | ~RSBagReader () |
virtual bool | IsOpened () const override |
Check If the RSBag file is opened. More... | |
virtual bool | IsEOF () const override |
Check if the RSBag file is all read. More... | |
virtual bool | Open (const std::string &filename) override |
virtual void | Close () override |
Close the opened RSBag playback. More... | |
virtual const RGBDVideoMetadata & | GetMetadata () const override |
Get (read-only) metadata of the playback. More... | |
virtual RGBDVideoMetadata & | GetMetadata () override |
Get reference to the metadata of the RGBD video playback. More... | |
virtual bool | SeekTimestamp (uint64_t timestamp) override |
virtual uint64_t | GetTimestamp () const override |
Get current timestamp (in us). More... | |
virtual t::geometry::RGBDImage | NextFrame () override |
Copy next frame from the bag file and return the RGBDImage object. More... | |
virtual std::string | GetFilename () const override |
Return filename being read. 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 | ToString () const |
Text description. More... | |
Public Member Functions inherited from open3d::t::io::RGBDVideoReader | |
RGBDVideoReader () | |
virtual | ~RGBDVideoReader () |
virtual void | SaveFrames (const std::string &frame_path, uint64_t start_time_us=0, uint64_t end_time_us=UINT64_MAX) |
virtual std::string | ToString () const |
Text description. More... | |
Static Public Attributes | |
static const size_t | DEFAULT_BUFFER_SIZE = 32 |
Additional Inherited Members | |
Static Public Member Functions inherited from open3d::t::io::RGBDVideoReader | |
static std::unique_ptr< RGBDVideoReader > | Create (const std::string &filename) |
Factory function to create object based on RGBD video file type. More... | |
RealSense Bag file reader.
Only the first color and depth streams from the bag file will be read.
Note: A few frames may be dropped if user code takes a long time (>10 frame intervals) to process a frame.
|
explicit |
Constructor
buffer_size | (optional) Max number of frames to store in the frame buffer |
|
delete |
|
virtual |
|
overridevirtual |
Close the opened RSBag playback.
Implements open3d::t::io::RGBDVideoReader.
|
inlineoverridevirtual |
Return filename being read.
Implements open3d::t::io::RGBDVideoReader.
|
inlineoverridevirtual |
Get (read-only) metadata of the playback.
Implements open3d::t::io::RGBDVideoReader.
|
inlineoverridevirtual |
Get reference to the metadata of the RGBD video playback.
Implements open3d::t::io::RGBDVideoReader.
|
overridevirtual |
Get current timestamp (in us).
Implements open3d::t::io::RGBDVideoReader.
|
overridevirtual |
Check if the RSBag file is all read.
Implements open3d::t::io::RGBDVideoReader.
|
inlineoverridevirtual |
Check If the RSBag file is opened.
Implements open3d::t::io::RGBDVideoReader.
|
overridevirtual |
Copy next frame from the bag file and return the RGBDImage object.
Implements open3d::t::io::RGBDVideoReader.
|
overridevirtual |
Open an RGBD Video playback.
filename | Path to the RSBag file. |
Implements open3d::t::io::RGBDVideoReader.
|
delete |
void open3d::t::io::RGBDVideoReader::SaveFrames |
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) |
|
overridevirtual |
Seek to the timestamp (in us).
timestamp | Time in us to seek to. |
Implements open3d::t::io::RGBDVideoReader.
std::string open3d::t::io::RGBDVideoReader::ToString |
Text description.
|
static |