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
>
11
#include <
camera/PinholeCameraIntrinsic.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
27
class
RGBDVideoMetadata
:
public
utility::IJsonConvertible
{
28
public
:
29
bool
ConvertToJsonValue
(Json::Value &value)
const override
;
30
31
bool
ConvertFromJsonValue
(
const
Json::Value &value)
override
;
32
34
using
utility::IJsonConvertible::ToString
;
35
36
public
:
40
camera::PinholeCameraIntrinsic
intrinsics_
;
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
69
core::Dtype
color_dt_
;
70
72
core::Dtype
depth_dt_
;
73
75
uint8_t
color_channels_
;
76
79
double
depth_scale_
;
80
};
81
82
}
// namespace io
83
}
// namespace t
84
}
// namespace cloudViewer
Dtype.h
IJsonConvertible.h
PinholeCameraIntrinsic.h
cloudViewer::camera::PinholeCameraIntrinsic
Contains the pinhole camera intrinsic parameters.
Definition:
PinholeCameraIntrinsic.h:35
cloudViewer::core::Dtype
Definition:
Dtype.h:21
cloudViewer::t::io::RGBDVideoMetadata
RGBD video metadata.
Definition:
RGBDVideoMetadata.h:27
cloudViewer::t::io::RGBDVideoMetadata::color_format_
std::string color_format_
Pixel format for color data.
Definition:
RGBDVideoMetadata.h:63
cloudViewer::t::io::RGBDVideoMetadata::depth_dt_
core::Dtype depth_dt_
Pixel Dtype for depth data.
Definition:
RGBDVideoMetadata.h:72
cloudViewer::t::io::RGBDVideoMetadata::fps_
double fps_
Frame rate.
Definition:
RGBDVideoMetadata.h:60
cloudViewer::t::io::RGBDVideoMetadata::serial_number_
std::string serial_number_
Capture device serial number.
Definition:
RGBDVideoMetadata.h:46
cloudViewer::t::io::RGBDVideoMetadata::ConvertFromJsonValue
bool ConvertFromJsonValue(const Json::Value &value) override
Definition:
RGBDVideoMetadata.cpp:35
cloudViewer::t::io::RGBDVideoMetadata::intrinsics_
camera::PinholeCameraIntrinsic intrinsics_
Shared intrinsics between RGB & depth.
Definition:
RGBDVideoMetadata.h:40
cloudViewer::t::io::RGBDVideoMetadata::color_channels_
uint8_t color_channels_
Number of color channels.
Definition:
RGBDVideoMetadata.h:75
cloudViewer::t::io::RGBDVideoMetadata::depth_format_
std::string depth_format_
Pixel format for depth data.
Definition:
RGBDVideoMetadata.h:66
cloudViewer::t::io::RGBDVideoMetadata::ConvertToJsonValue
bool ConvertToJsonValue(Json::Value &value) const override
Definition:
RGBDVideoMetadata.cpp:18
cloudViewer::t::io::RGBDVideoMetadata::color_dt_
core::Dtype color_dt_
Pixel Dtype for color data.
Definition:
RGBDVideoMetadata.h:69
cloudViewer::t::io::RGBDVideoMetadata::device_name_
std::string device_name_
Capture device name.
Definition:
RGBDVideoMetadata.h:43
cloudViewer::t::io::RGBDVideoMetadata::width_
int width_
Width of the video frame.
Definition:
RGBDVideoMetadata.h:52
cloudViewer::t::io::RGBDVideoMetadata::depth_scale_
double depth_scale_
Definition:
RGBDVideoMetadata.h:79
cloudViewer::t::io::RGBDVideoMetadata::height_
int height_
Height of the video frame.
Definition:
RGBDVideoMetadata.h:55
cloudViewer::t::io::RGBDVideoMetadata::stream_length_usec_
uint64_t stream_length_usec_
Length of the video (usec). 0 for live capture.
Definition:
RGBDVideoMetadata.h:49
cloudViewer::utility::IJsonConvertible
Definition:
IJsonConvertible.h:41
cloudViewer::utility::IJsonConvertible::ToString
virtual std::string ToString() const
Convert to a styled string representation of JSON data for display.
Definition:
IJsonConvertible.cpp:37
cloudViewer::t::io::SensorType
SensorType
Definition:
RGBDVideoMetadata.h:24
cloudViewer::t::io::SensorType::REAL_SENSE
@ REAL_SENSE
cloudViewer::t::io::SensorType::AZURE_KINECT
@ AZURE_KINECT
cloudViewer
Generic file read and write utility for python interface.
Definition:
AutoSegmentationTools.h:16
libs
cloudViewer
t
io
sensor
RGBDVideoMetadata.h
Generated on Wed Jan 28 2026 09:00:56 for ACloudViewer by
1.9.1