IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
NormalizedCrossCorrelation2dImgLvl1.h
1 // NormalizedCrossCorrelation2dImgLvl1.h:
3 // --------------------------------------
4 //
14 
15 #ifndef __IPSDKIPLFILTERING_NORMALIZEDCROSSCORRELATION2DIMGLVL1_H__
16 #define __IPSDKIPLFILTERING_NORMALIZEDCROSSCORRELATION2DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/2d/InImg2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutRealImg.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Kernel/InKnlXY.h>
26 #include <IPSDKBaseData/Pattern/Kernel/KernelXY.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace filter {
31 
34 
35 // declare processor class
36 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLFiltering, NormalizedCrossCorrelation2dImg,
37  ipsdk::imaproc::matchSize(_pInImg2d, _pOutRealImg),
38  (((ipsdk)(imaproc)(attr))(InImg2d))
39  (((ipsdk)(imaproc)(attr))(InKnlXY))
40  (((ipsdk)(imaproc)(attr))(OutRealImg)(ipsdk::imaproc::duplicateInOut)(_pInImg2d)(ipsdk::image::eImageBufferType::eIBT_Real32)))
41 // methods
42 public:
43 
44 protected:
48 
49 
52  ipsdk::core::ExecResult postProcess();
53 
54 // attributes
55 protected:
57  KernelXYPtr _pNormalizedKernel;
58 
59 };
60 
63 
64 } // end of namespace filter
65 } // end of namespace imaproc
66 } // end of namespace ipsdk
67 
68 #endif // __IPSDKIPLFILTERING_NORMALIZEDCROSSCORRELATION2DIMGLVL1_H__
#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)
ipsdk::core::ExecResult preProcess()
method called before processing
boost::shared_ptr< KernelXY > KernelXYPtr
Definition of import/export macro for library.