IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LaplacianDoG2dImgLvl1.h
1 // LaplacianDoG2dImgLvl1.h:
3 // ------------------------
4 //
16 
17 #ifndef __IPSDKIPLFILTERING_LAPLACIANDOG2DIMGLVL1_H__
18 #define __IPSDKIPLFILTERING_LAPLACIANDOG2DIMGLVL1_H__
19 
23 
24 // Attributes headers
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk1Img.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InStdDev.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOptStdDevFactor.h>
30 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptSmoothingGaussianCoverage.h>
31 #include <IPSDKBaseData/Pattern/Kernel/KernelXY.h>
33 
34 namespace ipsdk {
35 namespace imaproc {
36 namespace filter {
37 
40 
41 // declare processor class
42 IPSDK_DECLARE_LVL1_PROCESSOR(REP_ASYNC1, IPSDKIPLFiltering, LaplacianDoG2dImg,
43  ipsdk::imaproc::matchSize(_pInImg, _pOutImg) &&
44  ipsdk::imaproc::matchSizeAndType(_pInImg, _pOutWk1Img) &&
45  ipsdk::imaproc::noInSitu(_pInImg, _pOutWk1Img) &&
46  ipsdk::imaproc::noInSitu(_pOutImg, _pOutWk1Img),
47  (((ipsdk)(imaproc)(attr))(InImg))
48  (((ipsdk)(imaproc)(attr))(InStdDev))
49  (((ipsdk)(imaproc)(attr))(InOptStdDevFactor))
50  (((ipsdk)(imaproc)(attr))(InOptSmoothingGaussianCoverage))
51  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::promoteUnary)(_pInImg)(ePromoteUnaryType::ePUT_UpperSigned))
52  (((ipsdk)(imaproc)(attr))(OutWk1Img)(ipsdk::imaproc::duplicateInOut)(_pInImg)))
53 
54 // methods
55 public:
56 
57 protected:
61 
62  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
63  const core::BasePriority& priority,
64  core::ActionProviderPtr& pProvider);
65 
66  processor::RetrievalResult convolution(const core::BasePriority& priority, core::ActionProviderPtr& pProvider,
67  const ipsdk::image::ImageConstPtr& pInImg, const ipsdk::KernelXYPtr& pKernel, ipsdk::image::ImagePtr& pOutImg);
68  processor::RetrievalResult subtract(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
69 
70 // attributes
71 protected:
73  ipReal32 _excitatoryStdDev;
74  ipReal32 _inhibitoryStdDev;
75 
77  KernelXYPtr _pXAxisExcitatoryKernel;
78  KernelXYPtr _pYAxisExcitatoryKernel;
79  KernelXYPtr _pXAxisInhibitoryKernel;
80  KernelXYPtr _pYAxisInhibitoryKernel;
81 
83  ipsdk::image::Border2dPolicyPtr _pBorder2dPolicy;
84 };
85 
88 
89 } // end of namespace filter
90 } // end of namespace imaproc
91 } // end of namespace ipsdk
92 
93 #endif // __IPSDKIPLFILTERING_LAPLACIANDOG2DIMGLVL1_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#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
boost::shared_ptr< BaseImage > ImagePtr
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< Border2dPolicy > Border2dPolicyPtr
boost::shared_ptr< KernelXY > KernelXYPtr
boost::shared_ptr< const BaseImage > ImageConstPtr
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
Definition of import/export macro for library.
float ipReal32