Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dai::node::Cast Class Reference

Cast node. More...

#include <Cast.hpp>

Inheritance diagram for dai::node::Cast:
Inheritance graph
[legend]

Public Member Functions

 Cast (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
 
 Cast (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId, std::unique_ptr< Properties > props)
 
CastsetNumFramesPool (int numFramesPool)
 
CastsetOffset (float offset)
 
CastsetOutputFrameType (dai::RawImgFrame::Type outputType)
 
CastsetScale (float scale)
 
- Public Member Functions inherited from dai::NodeCRTP< Node, Cast, CastProperties >
std::unique_ptr< Nodeclone () const override
 
const char * getName () const override
 
- Public Member Functions inherited from dai::Node
virtual std::unique_ptr< Nodeclone () const =0
 Deep copy the node. More...
 
AssetManagergetAssetManager ()
 Get node AssetManager as a reference. More...
 
const AssetManagergetAssetManager () const
 Get node AssetManager as a const reference. More...
 
std::vector< Input * > getInputRefs ()
 Retrieves reference to node inputs. More...
 
std::vector< const Input * > getInputRefs () const
 Retrieves reference to node inputs. More...
 
std::vector< InputgetInputs ()
 Retrieves all nodes inputs. More...
 
virtual const char * getName () const =0
 Retrieves nodes name. More...
 
std::vector< Output * > getOutputRefs ()
 Retrieves reference to node outputs. More...
 
std::vector< const Output * > getOutputRefs () const
 Retrieves reference to node outputs. More...
 
std::vector< OutputgetOutputs ()
 Retrieves all nodes outputs. More...
 
Pipeline getParentPipeline ()
 
const Pipeline getParentPipeline () const
 
 Node (const std::shared_ptr< PipelineImpl > &p, Id nodeId, std::unique_ptr< Properties > props)
 Constructs Node. More...
 
virtual ~Node ()=default
 

Public Attributes

Input input {*this, "input", Input::Type::SReceiver, false, 4, true, {{DatatypeEnum::ImgFrame, false}, {DatatypeEnum::NNData, false}}}
 
Output output {*this, "output", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}}
 
Output passthroughInput {*this, "passthroughInput", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}, {DatatypeEnum::NNData, false}}}
 
- Public Attributes inherited from dai::NodeCRTP< Node, Cast, CastProperties >
Propertiesproperties
 Underlying properties. More...
 
- Public Attributes inherited from dai::Node
const Id id
 Id of node. More...
 
Propertiesproperties
 

Static Public Attributes

constexpr static const char * NAME = "Cast"
 

Additional Inherited Members

- Public Types inherited from dai::NodeCRTP< Node, Cast, CastProperties >
using Properties = CastProperties
 
- Public Types inherited from dai::Node
using Id = std::int64_t
 Node identificator. Unique for every node on a single Pipeline. More...
 
- Protected Member Functions inherited from dai::Node
virtual PropertiesgetProperties ()
 
virtual tl::optional< OpenVINO::VersiongetRequiredOpenVINOVersion ()
 
void setInputMapRefs (InputMap *inMapRef)
 
void setInputMapRefs (std::initializer_list< InputMap * > l)
 
void setInputRefs (Input *inRef)
 
void setInputRefs (std::initializer_list< Input * > l)
 
void setOutputMapRefs (OutputMap *outMapRef)
 
void setOutputMapRefs (std::initializer_list< OutputMap * > l)
 
void setOutputRefs (Output *outRef)
 
void setOutputRefs (std::initializer_list< Output * > l)
 
- Protected Attributes inherited from dai::Node
AssetManager assetManager
 
std::unordered_map< std::string, InputMap * > inputMapRefs
 
std::unordered_map< std::string, Input * > inputRefs
 
std::unordered_map< std::string, OutputMap * > outputMapRefs
 
std::unordered_map< std::string, Output * > outputRefs
 
std::weak_ptr< PipelineImplparent
 
copyable_unique_ptr< PropertiespropertiesHolder
 

Detailed Description

Cast node.

Definition at line 14 of file Cast.hpp.

Constructor & Destructor Documentation

◆ Cast() [1/2]

dai::node::Cast::Cast ( const std::shared_ptr< PipelineImpl > &  par,
int64_t  nodeId 
)

Definition at line 6 of file Cast.cpp.

◆ Cast() [2/2]

dai::node::Cast::Cast ( const std::shared_ptr< PipelineImpl > &  par,
int64_t  nodeId,
std::unique_ptr< Properties props 
)

Definition at line 7 of file Cast.cpp.

Member Function Documentation

◆ setNumFramesPool()

Cast & dai::node::Cast::setNumFramesPool ( int  numFramesPool)

Set number of frames in pool

Parameters
numFramesPoolNumber of frames in pool

Definition at line 13 of file Cast.cpp.

◆ setOffset()

Cast & dai::node::Cast::setOffset ( float  offset)

Set offset

Parameters
offsetOffset

Definition at line 28 of file Cast.cpp.

◆ setOutputFrameType()

Cast & dai::node::Cast::setOutputFrameType ( dai::RawImgFrame::Type  outputType)

Set output frame type

Parameters
outputTypeOutput frame type

Definition at line 18 of file Cast.cpp.

◆ setScale()

Cast & dai::node::Cast::setScale ( float  scale)

Set scale

Parameters
scaleScale

Definition at line 23 of file Cast.cpp.

Member Data Documentation

◆ input

Input dai::node::Cast::input {*this, "input", Input::Type::SReceiver, false, 4, true, {{DatatypeEnum::ImgFrame, false}, {DatatypeEnum::NNData, false}}}

Input NNData or ImgFrame message.

Definition at line 24 of file Cast.hpp.

◆ NAME

constexpr static const char* dai::node::Cast::NAME = "Cast"
staticconstexpr

Definition at line 16 of file Cast.hpp.

◆ output

Output dai::node::Cast::output {*this, "output", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}}

Output ImgFrame message.

Definition at line 29 of file Cast.hpp.

◆ passthroughInput

Output dai::node::Cast::passthroughInput {*this, "passthroughInput", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}, {DatatypeEnum::NNData, false}}}

Passthrough input message.

Definition at line 34 of file Cast.hpp.


The documentation for this class was generated from the following files:


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20