NVIDIA DeepStream SDK API Reference
9.2 Release
includes/ds3d/common/ds3d_analysis_datatype.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: Apache-2.0
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef _DS3D_COMMON_INFERENCE_DATATYPE__H
19
#define _DS3D_COMMON_INFERENCE_DATATYPE__H
20
21
#include <ds3d/common/common.h>
22
#include <ds3d/common/idatatype.h>
23
#include <ds3d/common/func_utils.h>
24
#include <ds3d/common/defines.h>
25
26
#undef DS3D_MAX_LABEL_SIZE
27
#define DS3D_MAX_LABEL_SIZE 128
28
29
/*
30
* Pointcloud Coordinate System
31
* pointcloud & box coordinate system, x -> front, y -> left, z -> up
32
*
33
*
34
* up z x front (yaw=0)
35
* ^ ^
36
* | /
37
* | /
38
* (yaw=0.5*pi) left y <------ 0
39
*/
40
namespace
ds3d
{
41
47
struct
Lidar3DBbox
{
48
float
centerX
= 0.0f;
49
float
centerY
= 0.0f;
50
float
centerZ
= 0.0f;
51
float
dx
= 0.0f;
// length, distance of x
52
float
dy
= 0.0f;
// width, distance of y
53
float
dz
= 0.0f;
// // height, distance of z
54
float
yaw
= 0.0f;
55
int
cid
= 0;
// class id
56
float
score
= 0.0f;
57
vec4f
bboxColor
= {{1.0f, 1.0f, 0, 1.0f}};
// RGBA, default value: yellow
58
char
labels
[
DS3D_MAX_LABEL_SIZE
] = {0};
59
60
Lidar3DBbox
() =
default
;
61
Lidar3DBbox
(
62
float
centerX_,
float
centerY_,
float
centerZ_,
float
length_,
float
width_,
float
height_,
63
float
yaw_,
int
cid_,
float
score_)
64
:
centerX
(centerX_),
centerY
(centerY_),
centerZ
(centerZ_),
dx
(length_),
dy
(width_),
65
dz
(height_),
yaw
(yaw_),
cid
(cid_),
score
(score_)
66
{
67
}
68
69
void
dump
()
const
{
70
LOG_DEBUG
(
"pos (%.3f %.3f %.3f) size (%.3f %.3f %.3f) score %.3f labels %s"
,
71
centerX
,
centerY
,
centerZ
,
dx
,
dy
,
dz
,
score
,
labels
);
72
}
73
};
74
80
struct
Object2DBbox
{
81
float
centerX
= 0.0f;
82
float
centerY
= 0.0f;
83
float
dx
= 0.0f;
// width, distance of x
84
float
dy
= 0.0f;
// height, distance of y
85
int
cid
= 0;
// class id
86
float
score
= 0.0f;
87
int
trackerId
= -1;
88
float
trackerScore
= 0.0f;
89
int
sourceId
= 0;
// objects in which source stream
90
vec4f
bboxColor
= {{0, 0, 0, 1.0f}};
// RGBA, black
91
char
labels
[
DS3D_MAX_LABEL_SIZE
] = {0};
92
};
93
99
struct
FusedDetection
{
100
Lidar3DBbox
obj3D
;
101
Object2DBbox
obj2D
;
102
float
score
= 0.0f;
103
vec4f
bboxColor
= {{1.0f, 0, 0, 1.0f}};
// RGBA, red
104
char
labels
[
DS3D_MAX_LABEL_SIZE
] = {0};
105
};
106
107
}
// namespace ds3d
108
109
#endif
ds3d::FusedDetection
Object fused bounding box description.
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:99
ds3d::Object2DBbox::trackerId
int trackerId
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:87
ds3d::FusedDetection::labels
char labels[DS3D_MAX_LABEL_SIZE]
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:104
ds3d::Lidar3DBbox::yaw
float yaw
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:54
ds3d::Lidar3DBbox::bboxColor
vec4f bboxColor
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:57
ds3d::FusedDetection::obj2D
Object2DBbox obj2D
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:101
ds3d::FusedDetection::obj3D
Lidar3DBbox obj3D
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:100
ds3d::Lidar3DBbox::Lidar3DBbox
Lidar3DBbox()=default
ds3d::Object2DBbox::labels
char labels[DS3D_MAX_LABEL_SIZE]
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:91
LOG_DEBUG
#define LOG_DEBUG(fmt,...)
Definition:
includes/ds3d/common/defines.h:59
ds3d::Lidar3DBbox::cid
int cid
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:55
ds3d::Object2DBbox::trackerScore
float trackerScore
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:88
ds3d::Object2DBbox::centerX
float centerX
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:81
ds3d::Lidar3DBbox::dx
float dx
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:51
ds3d::Object2DBbox::dx
float dx
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:83
ds3d::Object2DBbox
Object 2D bounding box description.
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:80
ds3d::Lidar3DBbox::labels
char labels[DS3D_MAX_LABEL_SIZE]
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:58
ds3d::Lidar3DBbox::score
float score
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:56
ds3d::Object2DBbox::bboxColor
vec4f bboxColor
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:90
ds3d::Object2DBbox::centerY
float centerY
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:82
ds3d::FusedDetection::score
float score
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:102
ds3d::Lidar3DBbox::dump
void dump() const
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:69
ds3d::Object2DBbox::score
float score
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:86
ds3d::Lidar3DBbox::Lidar3DBbox
Lidar3DBbox(float centerX_, float centerY_, float centerZ_, float length_, float width_, float height_, float yaw_, int cid_, float score_)
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:61
ds3d::Lidar3DBbox::dy
float dy
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:52
ds3d::FusedDetection::bboxColor
vec4f bboxColor
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:103
ds3d::Lidar3DBbox::dz
float dz
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:53
ds3d::Lidar3DBbox::centerX
float centerX
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:48
ds3d::__xyzw
Definition:
includes/ds3d/common/idatatype.h:31
ds3d::Object2DBbox::sourceId
int sourceId
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:89
ds3d::Object2DBbox::dy
float dy
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:84
ds3d::Object2DBbox::cid
int cid
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:85
ds3d
Definition:
includes/ds3d/common/abi_dataprocess.h:25
ds3d::Lidar3DBbox
Object 3D bounding box description.
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:47
ds3d::Lidar3DBbox::centerZ
float centerZ
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:50
ds3d::Lidar3DBbox::centerY
float centerY
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:49
DS3D_MAX_LABEL_SIZE
#define DS3D_MAX_LABEL_SIZE
Definition:
includes/ds3d/common/ds3d_analysis_datatype.h:27
Privacy Policy
|
Your Privacy Choices
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Wed Oct 28 2026 12:02:02 | PR-09318-R32