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
RawTrackedFeatures.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <cstdint>
3
#include <vector>
4
5
#include "
RawFeatureTrackerConfig.hpp
"
6
#include "
depthai-shared/common/Point2f.hpp
"
7
#include "
depthai-shared/datatype/DatatypeEnum.hpp
"
8
#include "
depthai-shared/datatype/RawBuffer.hpp
"
9
#include "
depthai-shared/utility/Serialization.hpp
"
10
11
namespace
dai
{
12
17
struct
TrackedFeature
{
21
Point2f
position
;
22
26
uint32_t
id
= 0;
27
31
uint32_t
age
= 0;
32
36
float
harrisScore
= 0.f;
37
41
float
trackingError
= 0.f;
42
};
43
DEPTHAI_SERIALIZE_EXT
(
TrackedFeature
, position,
id
, age, harrisScore, trackingError);
44
46
struct
RawTrackedFeatures
:
public
RawBuffer
{
47
std::vector<TrackedFeature>
trackedFeatures
;
48
49
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const override
{
50
metadata =
utility::serialize
(*
this
);
51
datatype =
DatatypeEnum::TrackedFeatures
;
52
};
53
54
DatatypeEnum
getType
()
const override
{
55
return
DatatypeEnum::TrackedFeatures
;
56
}
57
58
DEPTHAI_SERIALIZE
(
RawTrackedFeatures
,
trackedFeatures
,
RawBuffer::sequenceNum
,
RawBuffer::ts
,
RawBuffer::tsDevice
);
59
};
60
61
}
// namespace dai
dai::TrackedFeature::trackingError
float trackingError
Definition:
RawTrackedFeatures.hpp:41
dai::TrackedFeature::position
Point2f position
Definition:
RawTrackedFeatures.hpp:21
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::DEPTHAI_SERIALIZE_EXT
DEPTHAI_SERIALIZE_EXT(CameraSensorConfig, width, height, minFps, maxFps, fov, type)
dai::TrackedFeature::age
uint32_t age
Definition:
RawTrackedFeatures.hpp:31
dai::Point2f
Definition:
Point2f.hpp:16
RawFeatureTrackerConfig.hpp
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
DatatypeEnum.hpp
dai::RawBuffer::sequenceNum
int64_t sequenceNum
Definition:
RawBuffer.hpp:16
dai::TrackedFeature::harrisScore
float harrisScore
Definition:
RawTrackedFeatures.hpp:36
dai::RawBuffer::tsDevice
Timestamp tsDevice
Definition:
RawBuffer.hpp:18
RawBuffer.hpp
dai::DatatypeEnum::TrackedFeatures
@ TrackedFeatures
dai::RawTrackedFeatures::trackedFeatures
std::vector< TrackedFeature > trackedFeatures
Definition:
RawTrackedFeatures.hpp:47
dai::RawTrackedFeatures::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawTrackedFeatures, trackedFeatures, RawBuffer::sequenceNum, RawBuffer::ts, RawBuffer::tsDevice)
Serialization.hpp
dai::RawTrackedFeatures
RawTrackedFeatures structure.
Definition:
RawTrackedFeatures.hpp:46
Point2f.hpp
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::RawTrackedFeatures::getType
DatatypeEnum getType() const override
Definition:
RawTrackedFeatures.hpp:54
dai
Definition:
CameraExposureOffset.hpp:6
dai::RawTrackedFeatures::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition:
RawTrackedFeatures.hpp:49
dai::RawBuffer::ts
Timestamp ts
Definition:
RawBuffer.hpp:17
dai::TrackedFeature
Definition:
RawTrackedFeatures.hpp:17
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19