Class ImageAlign
Defined in File ImageAlign.hpp
Inheritance Relationships
Base Type
public dai::NodeCRTP< Node, ImageAlign, ImageAlignProperties >(Template Class NodeCRTP)
Class Documentation
-
class ImageAlign : public dai::NodeCRTP<Node, ImageAlign, ImageAlignProperties>
ImageAlign node. Calculates spatial location data on a set of ROIs on depth map.
Public Functions
-
ImageAlign &setOutputSize(int alignWidth, int alignHeight)
Specify the output size of the aligned image
-
ImageAlign &setOutKeepAspectRatio(bool keep)
Specify whether to keep aspect ratio when resizing
-
ImageAlign &setInterpolation(Interpolation interp)
Specify interpolation method to use when resizing
-
ImageAlign &setNumShaves(int numShaves)
Specify number of shaves to use for this node
-
ImageAlign &setNumFramesPool(int numFramesPool)
Specify number of frames in the pool
Public Members
-
ImageAlignConfig initialConfig
Initial config to use when calculating spatial location data.
-
Input 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.
-
Input input = {*this, "input", Input::Type::SReceiver, false, 4, true, {{DatatypeEnum::ImgFrame, false}}}
Input message. Default queue is non-blocking with size 4.
-
Input inputAlignTo = {*this, "inputAlignTo", Input::Type::SReceiver, false, 1, true, {{DatatypeEnum::ImgFrame, false}}}
Input align to message. Default queue is non-blocking with size 1.
-
Output outputAligned = {*this, "outputAligned", Output::Type::MSender, {{DatatypeEnum::ImgFrame, false}}}
Outputs ImgFrame message that is aligned to inputAlignTo.
-
Output 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.
Public Static Attributes
-
static constexpr const char *NAME = "ImageAlign"
Protected Functions
-
virtual Properties &getProperties()
-
ImageAlign &setOutputSize(int alignWidth, int alignHeight)