Class ImageAlign
Defined in File ImageAlign.hpp
Inheritance Relationships
Base Types
public dai::DeviceNodeCRTP< DeviceNode, ImageAlign, ImageAlignProperties >(Template Class DeviceNodeCRTP)public dai::HostRunnable(Class HostRunnable)
Class Documentation
-
class ImageAlign : public dai::DeviceNodeCRTP<DeviceNode, ImageAlign, ImageAlignProperties>, public dai::HostRunnable
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
-
void setRunOnHost(bool runOnHost)
Specify whether to run on host or device By default, the node will run on device.
-
virtual bool runOnHost() const override
Check if the node is set to run on host
-
virtual void run() override
-
inline DeviceNodeCRTP()
-
inline DeviceNodeCRTP(std::unique_ptr<Properties> props)
-
inline DeviceNodeCRTP(std::unique_ptr<Properties> props, bool confMode)
Public Members
-
std::shared_ptr<ImageAlignConfig> initialConfig = std::make_shared<ImageAlignConfig>()
Initial config to use when calculating spatial location data.
-
Input inputConfig = {*this, {"inputConfig", DEFAULT_GROUP, 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", DEFAULT_GROUP, false, 4, {{DatatypeEnum::ImgFrame, false}}}}
Input message. Default queue is non-blocking with size 4.
-
Input inputAlignTo = {*this, {"inputAlignTo", DEFAULT_GROUP, false, 1, {{DatatypeEnum::ImgFrame, false}}, true}}
Input align to message. Default queue is non-blocking with size 1.
-
Output outputAligned = {*this, {"outputAligned", DEFAULT_GROUP, {{DatatypeEnum::ImgFrame, false}}}}
Outputs ImgFrame message that is aligned to inputAlignTo.
-
Output passthroughInput = {*this, {"passthroughInput", DEFAULT_GROUP, {{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() override
-
ImageAlign &setOutputSize(int alignWidth, int alignHeight)