ImageAlign node. Calculates spatial location data on a set of ROIs on depth map. More...
#include <ImageAlign.hpp>
Public Member Functions | |
ImageAlign (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId) | |
ImageAlign (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId, std::unique_ptr< Properties > props) | |
ImageAlign & | setInterpolation (Interpolation interp) |
ImageAlign & | setNumFramesPool (int numFramesPool) |
ImageAlign & | setNumShaves (int numShaves) |
ImageAlign & | setOutKeepAspectRatio (bool keep) |
ImageAlign & | setOutputSize (int alignWidth, int alignHeight) |
![]() | |
std::unique_ptr< Node > | clone () const override |
const char * | getName () const override |
![]() | |
virtual std::unique_ptr< Node > | clone () const =0 |
Deep copy the node. More... | |
AssetManager & | getAssetManager () |
Get node AssetManager as a reference. More... | |
const AssetManager & | getAssetManager () 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< Input > | getInputs () |
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< Output > | getOutputs () |
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 | |
ImageAlignConfig | initialConfig |
Input | input {*this, "input", Input::Type::SReceiver, false, 4, true, {{DatatypeEnum::ImgFrame, false}}} |
Input | inputAlignTo {*this, "inputAlignTo", Input::Type::SReceiver, false, 1, true, {{DatatypeEnum::ImgFrame, false}}} |
Input | inputConfig {*this, "inputConfig", Input::Type::SReceiver, false, 4, {{DatatypeEnum::ImageAlignConfig, false}}} |
Output | outputAligned {*this, "outputAligned", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}} |
Output | passthroughInput {*this, "passthroughInput", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}} |
![]() | |
Properties & | properties |
Underlying properties. More... | |
![]() | |
const Id | id |
Id of node. More... | |
Properties & | properties |
Static Public Attributes | |
constexpr static const char * | NAME = "ImageAlign" |
Protected Member Functions | |
Properties & | getProperties () |
![]() | |
virtual tl::optional< OpenVINO::Version > | getRequiredOpenVINOVersion () |
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) |
Private Attributes | |
std::shared_ptr< RawImageAlignConfig > | rawConfig |
Additional Inherited Members | |
![]() | |
using | Properties = ImageAlignProperties |
![]() | |
using | Id = std::int64_t |
Node identificator. Unique for every node on a single Pipeline. More... | |
![]() | |
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< PipelineImpl > | parent |
copyable_unique_ptr< Properties > | propertiesHolder |
ImageAlign node. Calculates spatial location data on a set of ROIs on depth map.
Definition at line 16 of file ImageAlign.hpp.
dai::node::ImageAlign::ImageAlign | ( | const std::shared_ptr< PipelineImpl > & | par, |
int64_t | nodeId | ||
) |
Definition at line 6 of file ImageAlign.cpp.
dai::node::ImageAlign::ImageAlign | ( | const std::shared_ptr< PipelineImpl > & | par, |
int64_t | nodeId, | ||
std::unique_ptr< Properties > | props | ||
) |
Definition at line 7 of file ImageAlign.cpp.
|
protectedvirtual |
Reimplemented from dai::Node.
Definition at line 15 of file ImageAlign.cpp.
ImageAlign & dai::node::ImageAlign::setInterpolation | ( | Interpolation | interp | ) |
Specify interpolation method to use when resizing
Definition at line 30 of file ImageAlign.cpp.
ImageAlign & dai::node::ImageAlign::setNumFramesPool | ( | int | numFramesPool | ) |
Specify number of frames in the pool
Definition at line 40 of file ImageAlign.cpp.
ImageAlign & dai::node::ImageAlign::setNumShaves | ( | int | numShaves | ) |
Specify number of shaves to use for this node
Definition at line 35 of file ImageAlign.cpp.
ImageAlign & dai::node::ImageAlign::setOutKeepAspectRatio | ( | bool | keep | ) |
Specify whether to keep aspect ratio when resizing
Definition at line 25 of file ImageAlign.cpp.
ImageAlign & dai::node::ImageAlign::setOutputSize | ( | int | alignWidth, |
int | alignHeight | ||
) |
Specify the output size of the aligned image
Definition at line 20 of file ImageAlign.cpp.
ImageAlignConfig dai::node::ImageAlign::initialConfig |
Initial config to use when calculating spatial location data.
Definition at line 33 of file ImageAlign.hpp.
Input dai::node::ImageAlign::input {*this, "input", Input::Type::SReceiver, false, 4, true, {{DatatypeEnum::ImgFrame, false}}} |
Input message. Default queue is non-blocking with size 4.
Definition at line 45 of file ImageAlign.hpp.
Input dai::node::ImageAlign::inputAlignTo {*this, "inputAlignTo", Input::Type::SReceiver, false, 1, true, {{DatatypeEnum::ImgFrame, false}}} |
Input align to message. Default queue is non-blocking with size 1.
Definition at line 51 of file ImageAlign.hpp.
Input dai::node::ImageAlign::inputConfig {*this, "inputConfig", Input::Type::SReceiver, false, 4, {{DatatypeEnum::ImageAlignConfig, false}}} |
Input message with ability to modify parameters in runtime. Default queue is non-blocking with size 4.
Definition at line 39 of file ImageAlign.hpp.
|
staticconstexpr |
Definition at line 18 of file ImageAlign.hpp.
Output dai::node::ImageAlign::outputAligned {*this, "outputAligned", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}} |
Outputs ImgFrame message that is aligned to inputAlignTo.
Definition at line 56 of file ImageAlign.hpp.
Output dai::node::ImageAlign::passthroughInput {*this, "passthroughInput", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}} |
Passthrough message on which the calculation was performed. Suitable for when input queue is set to non-blocking behavior.
Definition at line 62 of file ImageAlign.hpp.
|
private |
Definition at line 24 of file ImageAlign.hpp.