Class Cast

Inheritance Relationships

Base Type

Class Documentation

class Cast : public dai::NodeCRTP<Node, Cast, CastProperties>

Cast node.

Public 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)
Cast &setNumFramesPool(int numFramesPool)

Set number of frames in pool

Parameters:

numFramesPool – Number of frames in pool

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

Set output frame type

Parameters:

outputType – Output frame type

Cast &setScale(float scale)

Set scale

Parameters:

scale – Scale

Cast &setOffset(float offset)

Set offset

Parameters:

offset – Offset

Public Members

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

Input NNData or ImgFrame message.

Output output = {*this, "output", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}}

Output ImgFrame message.

Output passthroughInput = {*this, "passthroughInput", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}, {DatatypeEnum::NNData, false}}}

Passthrough input message.

Public Static Attributes

static constexpr const char *NAME = "Cast"