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
RawAprilTagConfig.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <vector>
5
6
#include "
depthai-shared/datatype/DatatypeEnum.hpp
"
7
#include "
depthai-shared/datatype/RawBuffer.hpp
"
8
#include "
depthai-shared/utility/Serialization.hpp
"
9
10
namespace
dai
{
11
13
struct
RawAprilTagConfig
:
public
RawBuffer
{
17
enum class
Family
: std::int32_t {
TAG_36H11
= 0,
TAG_36H10
,
TAG_25H9
,
TAG_16H5
,
TAG_CIR21H7
,
TAG_STAND41H12
};
18
22
Family
family
=
Family::TAG_36H11
;
23
30
std::int32_t
quadDecimate
= 4;
31
37
float
quadSigma
= 0.0f;
38
46
bool
refineEdges
=
true
;
47
54
float
decodeSharpening
= 0.25f;
55
62
std::int32_t
maxHammingDistance
= 1;
63
67
struct
QuadThresholds
{
71
std::int32_t
minClusterPixels
= 5;
72
76
std::int32_t
maxNmaxima
= 10;
77
83
float
criticalDegree
= 10.f;
84
91
float
maxLineFitMse
= 10.f;
92
98
std::int32_t
minWhiteBlackDiff
= 5;
99
103
bool
deglitch
=
false
;
104
105
DEPTHAI_SERIALIZE
(
QuadThresholds
,
minClusterPixels
,
maxNmaxima
,
criticalDegree
,
maxLineFitMse
,
minWhiteBlackDiff
,
deglitch
);
106
};
107
111
QuadThresholds
quadThresholds
;
112
113
void
serialize
(std::vector<std::uint8_t>& metadata,
DatatypeEnum
& datatype)
const override
{
114
metadata =
utility::serialize
(*
this
);
115
datatype =
DatatypeEnum::AprilTagConfig
;
116
};
117
118
DatatypeEnum
getType
()
const override
{
119
return
DatatypeEnum::AprilTagConfig
;
120
}
121
122
DEPTHAI_SERIALIZE
(
RawAprilTagConfig
,
family
,
quadDecimate
,
quadSigma
,
refineEdges
,
decodeSharpening
,
maxHammingDistance
,
quadThresholds
);
123
};
124
125
}
// namespace dai
dai::RawAprilTagConfig::QuadThresholds::criticalDegree
float criticalDegree
Definition:
RawAprilTagConfig.hpp:83
dai::RawAprilTagConfig::Family::TAG_25H9
@ TAG_25H9
dai::RawAprilTagConfig::QuadThresholds
Definition:
RawAprilTagConfig.hpp:67
dai::DatatypeEnum::AprilTagConfig
@ AprilTagConfig
dai::RawAprilTagConfig::Family::TAG_STAND41H12
@ TAG_STAND41H12
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::RawAprilTagConfig::Family::TAG_CIR21H7
@ TAG_CIR21H7
dai::RawAprilTagConfig::Family::TAG_16H5
@ TAG_16H5
dai::RawAprilTagConfig::QuadThresholds::minClusterPixels
std::int32_t minClusterPixels
Definition:
RawAprilTagConfig.hpp:71
dai::RawAprilTagConfig::maxHammingDistance
std::int32_t maxHammingDistance
Definition:
RawAprilTagConfig.hpp:62
dai::RawAprilTagConfig::QuadThresholds::deglitch
bool deglitch
Definition:
RawAprilTagConfig.hpp:103
dai::utility::serialize
bool serialize(const T &obj, std::vector< std::uint8_t > &data)
Definition:
Serialization.hpp:38
dai::RawAprilTagConfig::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(RawAprilTagConfig, family, quadDecimate, quadSigma, refineEdges, decodeSharpening, maxHammingDistance, quadThresholds)
DatatypeEnum.hpp
dai::RawAprilTagConfig::QuadThresholds::minWhiteBlackDiff
std::int32_t minWhiteBlackDiff
Definition:
RawAprilTagConfig.hpp:98
dai::RawAprilTagConfig::Family
Family
Definition:
RawAprilTagConfig.hpp:17
dai::RawAprilTagConfig
RawAprilTags configuration structure.
Definition:
RawAprilTagConfig.hpp:13
dai::RawAprilTagConfig::refineEdges
bool refineEdges
Definition:
RawAprilTagConfig.hpp:46
RawBuffer.hpp
dai::RawAprilTagConfig::quadDecimate
std::int32_t quadDecimate
Definition:
RawAprilTagConfig.hpp:30
dai::RawAprilTagConfig::quadSigma
float quadSigma
Definition:
RawAprilTagConfig.hpp:37
dai::RawAprilTagConfig::QuadThresholds::maxLineFitMse
float maxLineFitMse
Definition:
RawAprilTagConfig.hpp:91
dai::RawAprilTagConfig::serialize
void serialize(std::vector< std::uint8_t > &metadata, DatatypeEnum &datatype) const override
Definition:
RawAprilTagConfig.hpp:113
dai::RawAprilTagConfig::quadThresholds
QuadThresholds quadThresholds
Definition:
RawAprilTagConfig.hpp:111
Serialization.hpp
dai::RawAprilTagConfig::QuadThresholds::DEPTHAI_SERIALIZE
DEPTHAI_SERIALIZE(QuadThresholds, minClusterPixels, maxNmaxima, criticalDegree, maxLineFitMse, minWhiteBlackDiff, deglitch)
dai::RawAprilTagConfig::Family::TAG_36H10
@ TAG_36H10
dai::RawAprilTagConfig::getType
DatatypeEnum getType() const override
Definition:
RawAprilTagConfig.hpp:118
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::RawAprilTagConfig::decodeSharpening
float decodeSharpening
Definition:
RawAprilTagConfig.hpp:54
dai::RawAprilTagConfig::family
Family family
Definition:
RawAprilTagConfig.hpp:22
dai
Definition:
CameraExposureOffset.hpp:6
dai::RawAprilTagConfig::QuadThresholds::maxNmaxima
std::int32_t maxNmaxima
Definition:
RawAprilTagConfig.hpp:76
dai::RawAprilTagConfig::Family::TAG_36H11
@ TAG_36H11
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19