IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Warp2dImgLvl1.h
1 // Warp2dImgLvl1.h:
3 // ----------------
4 //
14 
15 #ifndef __IPSDKIPLGEOMETRICTRANSFORM_WARP2DIMGLVL1_H__
16 #define __IPSDKIPLGEOMETRICTRANSFORM_WARP2DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
24 #include <IPSDKIPL/IPSDKIPLGeometricTransform/Attribute/DataItem/InWarpMotionTransform2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InOptInterpolationPolicy.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOptTargetTile2dSideLength.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Optional/OutOptMaskImg.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace gtrans {
33 
36 
37 // declare processor class
38 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC3, IPSDKIPLGeometricTransform, Warp2dImg,
39  ipsdk::imaproc::matchBufferType(_pInImg, _pOutImg) &&
40  ipsdk::imaproc::matchSize(ipsdk::imaproc::eMatchImageSizeType::eMIST_ZCT, _pInImg, _pOutImg) &&
41  ipsdk::processor::ifIsSet(_pOutOptMaskImg,
42  ipsdk::imaproc::match2dMask(_pOutImg, _pOutOptMaskImg)),
43  (((ipsdk)(imaproc)(attr))(InImg))
44  (((ipsdk)(imaproc)(gtrans))(InWarpMotionTransform2d))
45  (((ipsdk)(imaproc)(attr))(InOptInterpolationPolicy))
46  (((ipsdk)(imaproc)(attr))(InOptTargetTile2dSideLength))
47  (((ipsdk)(imaproc)(attr))(OutImg)(customOutput)(outputWarp(_pInImg, _pInWarpMotionTransform2d)))
48  (((ipsdk)(imaproc)(attr))(OutOptMaskImg)))
49 
50 // methods
51 public:
52 
53 protected:
54 
55 // attributes
56 protected:
57 
58 };
59 
62 
63 } // end of namespace gtrans
64 } // end of namespace imaproc
65 } // end of namespace ipsdk
66 
67 #endif // __IPSDKIPLGEOMETRICTRANSFORM_WARP2DIMGLVL1_H__
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
Definition of import/export macro for library.
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
processor::OutputInitializerPtr customOutput(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const CustomImageInfoPtr &pCustomImageInfo)
utility functions for warping transformation output attribute initialization management ...
IPSDKIPLGEOMETRICTRANSFORM_API CustomImageInfoPtr outputWarp(const ImageAttributeConstPtr &pInputAttribute, const boost::shared_ptr< const InWarpMotionTransform2d > &pInWarpMotionTransform2d)
function allowing to create a "warping transformation 2d" image initializer