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
src
pipeline
node
Cast.cpp
Go to the documentation of this file.
1
#include "
depthai/pipeline/node/Cast.hpp
"
2
3
namespace
dai
{
4
namespace
node {
5
6
Cast::Cast
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId) :
Cast
(par, nodeId,
std
::make_unique<
Cast
::
Properties
>()) {}
7
Cast::Cast
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props)
8
:
NodeCRTP
<
Node
,
Cast
,
CastProperties
>(par, nodeId,
std
::move(props)) {
9
setInputRefs
({&
input
});
10
setOutputRefs
({&
output
, &
passthroughInput
});
11
}
12
13
Cast
&
Cast::setNumFramesPool
(
int
numFramesPool) {
14
properties
.
numFramesPool
= numFramesPool;
15
return
*
this
;
16
}
17
18
Cast
&
Cast::setOutputFrameType
(
dai::RawImgFrame::Type
outputType) {
19
properties
.
outputType
= outputType;
20
return
*
this
;
21
}
22
23
Cast
&
Cast::setScale
(
float
scale) {
24
properties
.
scale
= scale;
25
return
*
this
;
26
}
27
28
Cast
&
Cast::setOffset
(
float
offset) {
29
properties
.
offset
= offset;
30
return
*
this
;
31
}
32
33
}
// namespace node
34
}
// namespace dai
dai::NodeCRTP< Node, Cast, CastProperties >::properties
Properties & properties
Underlying properties.
Definition:
Node.hpp:346
dai::node::Cast::setOutputFrameType
Cast & setOutputFrameType(dai::RawImgFrame::Type outputType)
Definition:
Cast.cpp:18
dai::node::Cast
Cast node.
Definition:
Cast.hpp:14
dai::Node::setInputRefs
void setInputRefs(std::initializer_list< Input * > l)
dai::Node
Abstract Node.
Definition:
Node.hpp:29
dai::RawImgFrame::Type
Type
Definition:
RawImgFrame.hpp:13
dai::node::Cast::output
Output output
Definition:
Cast.hpp:29
dai::node::Cast::input
Input input
Definition:
Cast.hpp:24
dai::node::Cast::setScale
Cast & setScale(float scale)
Definition:
Cast.cpp:23
dai::NodeCRTP
Definition:
Node.hpp:342
dai::CastProperties
Definition:
CastProperties.hpp:14
dai::CastProperties::numFramesPool
int numFramesPool
Definition:
CastProperties.hpp:18
dai::CastProperties::outputType
dai::RawImgFrame::Type outputType
Definition:
CastProperties.hpp:15
dai::node::Cast::Cast
Cast(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
Definition:
Cast.cpp:6
dai::node::Cast::setNumFramesPool
Cast & setNumFramesPool(int numFramesPool)
Definition:
Cast.cpp:13
dai::Properties
Base Properties structure.
Definition:
Properties.hpp:8
dai::Node::setOutputRefs
void setOutputRefs(std::initializer_list< Output * > l)
std
Definition:
Node.hpp:366
Cast.hpp
dai::node::Cast::setOffset
Cast & setOffset(float offset)
Definition:
Cast.cpp:28
dai::CastProperties::scale
tl::optional< float > scale
Definition:
CastProperties.hpp:16
dai
Definition:
CameraExposureOffset.hpp:6
dai::node::Cast::passthroughInput
Output passthroughInput
Definition:
Cast.hpp:34
dai::CastProperties::offset
tl::optional< float > offset
Definition:
CastProperties.hpp:17
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:18