Cast.cpp
Go to the documentation of this file.
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)) {
11 }
12 
13 Cast& Cast::setNumFramesPool(int numFramesPool) {
14  properties.numFramesPool = numFramesPool;
15  return *this;
16 }
17 
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