IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BackwardDiscreteFourierTransform2dImgLvl1.h
1 // BackwardDiscreteFourierTransform2dImgLvl1.h:
3 // --------------------------------------------
4 //
14 
15 #ifndef __IPSDKIPLINTENSITYTRANSFORM_BACKWARDDISCRETEFOURIERTRANSFORM2DIMGLVL1_H__
16 #define __IPSDKIPLINTENSITYTRANSFORM_BACKWARDDISCRETEFOURIERTRANSFORM2DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InDFTImg1.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InDFTImg2.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptDFTConfig.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutRealImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk1RealImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Gpu/Working/Optional/OutOptWk1RealGpuImg.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace itrans {
33 
36 
37 // declare processor class
38 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC3, IPSDKIPLIntensityTransform, BackwardDiscreteFourierTransform2dImg,
39  ipsdk::imaproc::matchSize(_pInDFTImg1, _pInDFTImg2, _pOutRealImg, _pOutWk1RealImg) &&
40  ipsdk::processor::ifIsSet(_pOutOptWk1RealGpuImg,
41  ipsdk::imaproc::noInSitu(_pInDFTImg1, _pOutOptWk1RealGpuImg)) &&
42  ipsdk::imaproc::noInSitu(_pInDFTImg2, _pOutRealImg),
43  (((ipsdk)(imaproc)(attr))(InDFTImg1))
44  (((ipsdk)(imaproc)(attr))(InDFTImg2))
45  (((ipsdk)(imaproc)(attr))(InOptDFTConfig))
46  (((ipsdk)(imaproc)(attr))(OutOptWk1RealGpuImg))
47  (((ipsdk)(imaproc)(attr))(OutRealImg)(duplicateInOut)(_pInDFTImg1)(ipsdk::image::eImageBufferType::eIBT_Real32))
48  (((ipsdk)(imaproc)(attr))(OutWk1RealImg)(duplicateInOut)(_pInDFTImg1)(ipsdk::image::eImageBufferType::eIBT_Real32)))
49 
50 // methods
51 public:
52 
53 protected:
55  processor::RetrievalResult retrieveDFTProvider(const core::BasePriority& priority,
56  core::ActionProviderPtr& pProvider);
57 
58 // attributes
59 protected:
61  ipsdk::ipBool _bGpuCalculation;
62 
63 };
64 
67 
68 } // end of namespace itrans
69 } // end of namespace imaproc
70 } // end of namespace ipsdk
71 
72 #endif // __IPSDKIPLINTENSITYTRANSFORM_BACKWARDDISCRETEFOURIERTRANSFORM2DIMGLVL1_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
Definition of import/export macro for library.
bool ipBool
boost::shared_ptr< BaseActionProvider > ActionProviderPtr