Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
shared
depthai-shared
include
depthai-shared
datatype
RawSpatialLocations.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <cstdint>
3
#include <vector>
4
5
#include "
RawSpatialLocationCalculatorConfig.hpp
"
6
#include "
depthai-shared/common/Point3f.hpp
"
7
#include "
depthai-shared/common/Rect.hpp
"
8
#include "
depthai-shared/datatype/DatatypeEnum.hpp
"
9
#include "
depthai-shared/datatype/RawBuffer.hpp
"
10
#include "
depthai-shared/utility/Serialization.hpp
"
11
12
namespace
dai
{
13
21
struct
SpatialLocations
{
25
SpatialLocationCalculatorConfigData
config
;
30
float
depthAverage
= 0.f;
35
float
depthMode
= 0.f;
40
float
depthMedian
= 0.f;
45
std::uint16_t
depthMin
= 0;
50
std::uint16_t
depthMax
= 0;
54
std::uint32_t
depthAveragePixelCount
= 0;
58
Point3f
spatialCoordinates
;
59
};
60
DEPTHAI_SERIALIZE_EXT
(
SpatialLocations
, config, depthAverage, depthMode, depthMedian, depthMin, depthMax, depthAveragePixelCount, spatialCoordinates);
61
63
struct
RawSpatialLocations
:
public
RawBuffer
{
64
std::vector<SpatialLocations>
spatialLocations
;
65
66
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const override
{
67
metadata =
utility::serialize
(*
this
);
68
datatype =
DatatypeEnum::SpatialLocationCalculatorData
;
69
};
70
71
DatatypeEnum
getType
()
const override
{
72
return
DatatypeEnum::SpatialLocationCalculatorData
;
73
}
74
75
DEPTHAI_SERIALIZE
(
RawSpatialLocations
,
spatialLocations
,
RawBuffer::sequenceNum
,
RawBuffer::ts
,
RawBuffer::tsDevice
);
76
};
77
78
}
// namespace dai
dai::RawSpatialLocations::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition:
RawSpatialLocations.hpp:66
dai::SpatialLocations::depthMode
float depthMode
Definition:
RawSpatialLocations.hpp:35
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::SpatialLocations::spatialCoordinates
Point3f spatialCoordinates
Definition:
RawSpatialLocations.hpp:58
dai::DatatypeEnum::SpatialLocationCalculatorData
@ SpatialLocationCalculatorData
dai::SpatialLocations::depthAverage
float depthAverage
Definition:
RawSpatialLocations.hpp:30
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
DatatypeEnum.hpp
dai::SpatialLocationCalculatorConfigData
SpatialLocation configuration data structure.
Definition:
RawSpatialLocationCalculatorConfig.hpp:39
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition:
RawBuffer.hpp:16
dai::SpatialLocations
Definition:
RawSpatialLocations.hpp:21
dai::RawSpatialLocations::spatialLocations
std::vector< SpatialLocations > spatialLocations
Definition:
RawSpatialLocations.hpp:64
dai::RawSpatialLocations::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawSpatialLocations, spatialLocations, RawBuffer::sequenceNum, RawBuffer::ts, RawBuffer::tsDevice)
dai::RawSpatialLocations::getType
DatatypeEnum getType() const override
Definition:
RawSpatialLocations.hpp:71
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition:
RawBuffer.hpp:18
RawBuffer.hpp
RawSpatialLocationCalculatorConfig.hpp
dai::SpatialLocations::depthMin
std::uint16_t depthMin
Definition:
RawSpatialLocations.hpp:45
dai::SpatialLocations::depthMax
std::uint16_t depthMax
Definition:
RawSpatialLocations.hpp:50
Serialization.hpp
dai::SpatialLocations::depthMedian
float depthMedian
Definition:
RawSpatialLocations.hpp:40
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::Point3f
Definition:
Point3f.hpp:16
dai::SpatialLocations::config
SpatialLocationCalculatorConfigData config
Definition:
RawSpatialLocations.hpp:25
dai::SpatialLocations::depthAveragePixelCount
std::uint32_t depthAveragePixelCount
Definition:
RawSpatialLocations.hpp:54
dai::RawSpatialLocations
RawSpatialLocations structure.
Definition:
RawSpatialLocations.hpp:63
dai
Definition:
CameraExposureOffset.hpp:6
Rect.hpp
Point3f.hpp
dai::RawBuffer::ts
Timestamp ts
Definition:
RawBuffer.hpp:17
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19