Open3D (C++ API)  0.18.0+5c982c7
RGBDRecorder.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
12 
13 namespace open3d {
14 namespace io {
15 
16 class RGBDRecorder {
17 public:
19  virtual ~RGBDRecorder() {}
20 
22  virtual bool InitSensor() = 0;
23 
25  virtual bool OpenRecord(const std::string &filename) = 0;
26 
35  virtual std::shared_ptr<geometry::RGBDImage> RecordFrame(
36  bool write, bool enable_align_depth_to_color) = 0;
37 
39  virtual bool CloseRecord() = 0;
40 };
41 
42 } // namespace io
43 } // namespace open3d
Definition: RGBDRecorder.h:16
virtual std::shared_ptr< geometry::RGBDImage > RecordFrame(bool write, bool enable_align_depth_to_color)=0
RGBDRecorder()
Definition: RGBDRecorder.h:18
virtual bool CloseRecord()=0
Flush data to recording file and disconnect from sensor.
virtual bool InitSensor()=0
Init recorder, connect to sensor.
virtual bool OpenRecord(const std::string &filename)=0
Create recording file.
virtual ~RGBDRecorder()
Definition: RGBDRecorder.h:19
Definition: PinholeCameraIntrinsic.cpp:16