Warp node. Capability to crop, resize, warp, ... incoming image frames. More...
#include <Warp.hpp>
Public Member Functions | |
std::vector< int > | getHwIds () const |
Retrieve which hardware warp engines to use. More... | |
dai::Interpolation | getInterpolation () const |
Retrieve which interpolation method to use. More... | |
void | setHwIds (std::vector< int > ids) |
void | setInterpolation (dai::Interpolation interpolation) |
void | setMaxOutputFrameSize (int maxFrameSize) |
void | setNumFramesPool (int numFramesPool) |
void | setOutputSize (int width, int height) |
void | setOutputSize (std::tuple< int, int > size) |
void | setWarpMesh (const std::vector< Point2f > &meshData, int width, int height) |
void | setWarpMesh (const std::vector< std::pair< float, float >> &meshData, int width, int height) |
Warp (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId) | |
Warp (const std::shared_ptr< PipelineImpl > &par, int64_t nodeId, std::unique_ptr< Properties > props) | |
![]() | |
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 | |
Input | inputImage {*this, "inputImage", Input::Type::SReceiver, true, 8, true, {{DatatypeEnum::ImgFrame, true}}} |
Output | out {*this, "out", Output::Type::MSender, {{DatatypeEnum::ImgFrame, true}}} |
![]() | |
Properties & | properties |
Underlying properties. More... | |
![]() | |
const Id | id |
Id of node. More... | |
Properties & | properties |
Static Public Attributes | |
constexpr static const char * | NAME = "Warp" |
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 Member Functions | |
void | setWarpMesh (const float *meshData, int numMeshPoints, int width, int height) |
Additional Inherited Members | |
![]() | |
using | Properties = WarpProperties |
![]() | |
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 |
Warp node. Capability to crop, resize, warp, ... incoming image frames.
dai::node::Warp::Warp | ( | const std::shared_ptr< PipelineImpl > & | par, |
int64_t | nodeId | ||
) |
dai::node::Warp::Warp | ( | const std::shared_ptr< PipelineImpl > & | par, |
int64_t | nodeId, | ||
std::unique_ptr< Properties > | props | ||
) |
std::vector< int > dai::node::Warp::getHwIds | ( | ) | const |
dai::Interpolation dai::node::Warp::getInterpolation | ( | ) | const |
|
protectedvirtual |
void dai::node::Warp::setHwIds | ( | std::vector< int > | ids | ) |
void dai::node::Warp::setInterpolation | ( | dai::Interpolation | interpolation | ) |
void dai::node::Warp::setMaxOutputFrameSize | ( | int | maxFrameSize | ) |
void dai::node::Warp::setNumFramesPool | ( | int | numFramesPool | ) |
void dai::node::Warp::setOutputSize | ( | int | width, |
int | height | ||
) |
void dai::node::Warp::setOutputSize | ( | std::tuple< int, int > | size | ) |
|
private |
void dai::node::Warp::setWarpMesh | ( | const std::vector< Point2f > & | meshData, |
int | width, | ||
int | height | ||
) |
void dai::node::Warp::setWarpMesh | ( | const std::vector< std::pair< float, float >> & | meshData, |
int | width, | ||
int | height | ||
) |
Input dai::node::Warp::inputImage {*this, "inputImage", Input::Type::SReceiver, true, 8, true, {{DatatypeEnum::ImgFrame, true}}} |
|
staticconstexpr |
Output dai::node::Warp::out {*this, "out", Output::Type::MSender, {{DatatypeEnum::ImgFrame, true}}} |