IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HarrisCorner2dLvl1.h
1 // HarrisCorner2dLvl1.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKIPLFEATUREDETECTION_HARRISCORNER2DLVL1_H__
16 #define __IPSDKIPLFEATUREDETECTION_HARRISCORNER2DLVL1_H__
17 
22 
23 // Attributes headers
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOptGradStdDev.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptGradientGaussianCoverage.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptCornerDetectionParams2d.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InLocalExtremaConfig.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InFeaturesDistX.h>
30 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InFeaturesDistY.h>
31 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk1Img.h>
32 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk2Img.h>
33 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk3Img.h>
34 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutPIPixels2d.h>
35 
36 namespace ipsdk {
37 namespace imaproc {
38 namespace fd {
39 
42 
43 // declare processor class
44 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLFeatureDetection, HarrisCorner2d,
45  ipsdk::imaproc::matchImagePlans(_pOutPIPixels2d, _pInImg, eImagePlansMatchPolicy::eIPMP_ZCT) &&
46  ipsdk::imaproc::matchSize(_pInImg, _pOutWk1Img) &&
47  ipsdk::imaproc::matchSizeAndType(_pOutWk1Img, _pOutWk2Img, _pOutWk3Img),
48  (((ipsdk)(imaproc)(attr))(InImg))
49  (((ipsdk)(imaproc)(attr))(InOptGradStdDev))
50  (((ipsdk)(imaproc)(attr))(InOptGradientGaussianCoverage))
51  (((ipsdk)(imaproc)(attr))(InOptCornerDetectionParams2d))
52  (((ipsdk)(imaproc)(attr))(InLocalExtremaConfig))
53  (((ipsdk)(imaproc)(attr))(InFeaturesDistX))
54  (((ipsdk)(imaproc)(attr))(InFeaturesDistY))
55  (((ipsdk)(imaproc)(attr))(OutWk1Img)(promoteUnary)(_pInImg)(ipsdk::imaproc::ePromoteUnaryType::ePUT_UpperSigned))
56  (((ipsdk)(imaproc)(attr))(OutWk2Img)(promoteUnary)(_pInImg)(ipsdk::imaproc::ePromoteUnaryType::ePUT_UpperSigned))
57  (((ipsdk)(imaproc)(attr))(OutWk3Img)(promoteUnary)(_pInImg)(ipsdk::imaproc::ePromoteUnaryType::ePUT_UpperSigned))
58  (((ipsdk)(imaproc)(attr))(OutPIPixels2d)(ipsdk::imaproc::fromImage)(_pInImg)))
59 
60 // methods
61 public:
62 
63 protected:
64 
65 // attributes
66 protected:
67 
68 };
69 
72 
73 } // end of namespace fd
74 } // end of namespace imaproc
75 } // end of namespace ipsdk
76 
77 #endif // __IPSDKIPLFEATUREDETECTION_HARRISCORNER2DLVL1_H__
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
processor::OutputInitializerPtr promoteUnary(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const ePromoteUnaryType &promoteUnaryType)
ePUT_UpperSigned
Definition of import/export macro for library.
processor::OutputInitializerPtr fromImage(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const ImageAttributeConstWeakPtr &pInputImageAttribute, const eFromImagePlanIndexedPolicy &fromImagePlanIndexedPolicy)