ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
RGBDVideoMetadata.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <IJsonConvertible.h>
12 
13 #include "cloudViewer/core/Dtype.h"
14 
15 namespace cloudViewer {
16 
17 namespace camera {
18 class PinholeCameraIntrinsic;
19 }
20 
21 namespace t {
22 namespace io {
23 
24 enum class SensorType { AZURE_KINECT = 0, REAL_SENSE = 1 };
25 
28 public:
29  bool ConvertToJsonValue(Json::Value &value) const override;
30 
31  bool ConvertFromJsonValue(const Json::Value &value) override;
32 
35 
36 public:
41 
43  std::string device_name_ = "";
44 
46  std::string serial_number_ = "";
47 
49  uint64_t stream_length_usec_ = 0;
50 
52  int width_;
53 
55  int height_;
56 
58  //
60  double fps_;
61 
63  std::string color_format_;
64 
66  std::string depth_format_;
67 
70 
73 
75  uint8_t color_channels_;
76 
79  double depth_scale_;
80 };
81 
82 } // namespace io
83 } // namespace t
84 } // namespace cloudViewer
Contains the pinhole camera intrinsic parameters.
std::string color_format_
Pixel format for color data.
core::Dtype depth_dt_
Pixel Dtype for depth data.
std::string serial_number_
Capture device serial number.
bool ConvertFromJsonValue(const Json::Value &value) override
camera::PinholeCameraIntrinsic intrinsics_
Shared intrinsics between RGB & depth.
uint8_t color_channels_
Number of color channels.
std::string depth_format_
Pixel format for depth data.
bool ConvertToJsonValue(Json::Value &value) const override
core::Dtype color_dt_
Pixel Dtype for color data.
std::string device_name_
Capture device name.
int width_
Width of the video frame.
int height_
Height of the video frame.
uint64_t stream_length_usec_
Length of the video (usec). 0 for live capture.
virtual std::string ToString() const
Convert to a styled string representation of JSON data for display.
Generic file read and write utility for python interface.