Open3D (C++ API)  0.18.0+a4a173e
RGBDVideoMetadata.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 
11 #include "open3d/core/Dtype.h"
13 
14 namespace open3d {
15 
16 namespace camera {
17 class PinholeCameraIntrinsic;
18 }
19 
20 namespace t {
21 namespace io {
22 
23 enum class SensorType { AZURE_KINECT = 0, REAL_SENSE = 1 };
24 
27 public:
28  bool ConvertToJsonValue(Json::Value &value) const override;
29 
30  bool ConvertFromJsonValue(const Json::Value &value) override;
31 
34 
35 public:
40 
42  std::string device_name_ = "";
43 
45  std::string serial_number_ = "";
46 
49 
51  int width_;
52 
54  int height_;
55 
57  //
59  double fps_;
60 
62  std::string color_format_;
63 
65  std::string depth_format_;
66 
69 
72 
74  uint8_t color_channels_;
75 
78  double depth_scale_;
79 };
80 
81 } // namespace io
82 } // namespace t
83 } // namespace open3d
Contains the pinhole camera intrinsic parameters.
Definition: PinholeCameraIntrinsic.h:32
Definition: Dtype.h:20
RGBD video metadata.
Definition: RGBDVideoMetadata.h:26
double fps_
Frame rate.
Definition: RGBDVideoMetadata.h:59
double depth_scale_
Definition: RGBDVideoMetadata.h:78
int width_
Width of the video frame.
Definition: RGBDVideoMetadata.h:51
core::Dtype depth_dt_
Pixel Dtype for depth data.
Definition: RGBDVideoMetadata.h:71
camera::PinholeCameraIntrinsic intrinsics_
Shared intrinsics between RGB & depth.
Definition: RGBDVideoMetadata.h:39
uint8_t color_channels_
Number of color channels.
Definition: RGBDVideoMetadata.h:74
std::string color_format_
Pixel format for color data.
Definition: RGBDVideoMetadata.h:62
core::Dtype color_dt_
Pixel Dtype for color data.
Definition: RGBDVideoMetadata.h:68
int height_
Height of the video frame.
Definition: RGBDVideoMetadata.h:54
std::string device_name_
Capture device name.
Definition: RGBDVideoMetadata.h:42
bool ConvertToJsonValue(Json::Value &value) const override
Definition: RGBDVideoMetadata.cpp:18
bool ConvertFromJsonValue(const Json::Value &value) override
Definition: RGBDVideoMetadata.cpp:35
std::string depth_format_
Pixel format for depth data.
Definition: RGBDVideoMetadata.h:65
std::string serial_number_
Capture device serial number.
Definition: RGBDVideoMetadata.h:45
uint64_t stream_length_usec_
Length of the video (usec). 0 for live capture.
Definition: RGBDVideoMetadata.h:48
Definition: IJsonConvertible.h:40
virtual std::string ToString() const
Convert to a styled string representation of JSON data for display.
Definition: IJsonConvertible.cpp:35
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample uint64_t
Definition: K4aPlugin.cpp:343
SensorType
Definition: RGBDVideoMetadata.h:23
Definition: PinholeCameraIntrinsic.cpp:16