IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
PatchBasedBilateral3dImgLvl2.h
1 // PatchBasedBilateral3dImgLvl2.h:
3 // -------------------------
4 //
14 
15 #ifndef __IPSDKIPLFILTERING_PATCHBASEDBILATERAL3DIMGLVL2_H__
16 #define __IPSDKIPLFILTERING_PATCHBASEDBILATERAL3DIMGLVL2_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptPatchBasedBilateralParams.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutPatchBasedBilateralParams.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/3d/InSubImg3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutRealImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk1RealImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk2RealImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptPatchBasedBilateralParams.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/GaussianNoiseStats.h>
30 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/HistogramData.h>
31 
32 namespace ipsdk {
33 namespace imaproc {
34 namespace filter {
35 
38 
39 // declare processor class
40 IPSDK_DECLARE_LVL2_PROCESSOR(REP_ASYNC1, IPSDKIPLFiltering, PatchBasedBilateral3dImg,
41  ipsdk::imaproc::matchSize(_pInSubImg3d, _pOutRealImg) &&
42  ipsdk::imaproc::matchSize(_pInSubImg3d, _pOutWk1RealImg),
43  (((ipsdk)(imaproc)(attr))(InSubImg3d))
44  (((ipsdk)(imaproc)(attr))(InOptPatchBasedBilateralParams))
45  (((ipsdk)(imaproc)(attr))(OutPatchBasedBilateralParams))
46  (((ipsdk)(imaproc)(attr))(OutWk1RealImg))
47  (((ipsdk)(imaproc)(attr))(OutWk2RealImg))
48  (((ipsdk)(imaproc)(attr))(OutRealImg)))
49 
50 // methods
51 public:
52 
53 protected:
54  void computePatchBasedBilateralParamsFromHistogramMsrResults();
55 
56  processor::RetrievalResult provideProcessor(
57  const boost::shared_ptr<core::BaseAction>& pProcessor,
58  const core::BasePriority& priority,
59  core::ActionProviderPtr& pProvider);
60 
61  processor::RetrievalResult retrieveEraseOutImgProvider(
62  const core::BasePriority& priority,
63  core::ActionProviderPtr& pProvider);
64 
65  processor::RetrievalResult retrieveGaussianNoiseMsrProvider(
66  const core::BasePriority& priority,
67  core::ActionProviderPtr& pProvider);
68 
69  processor::RetrievalResult retrieveHistogramMsrProvider(
70  const core::BasePriority& priority,
71  core::ActionProviderPtr& pProvider);
72 
73  processor::RetrievalResult retrieveLastProvider(
74  const core::BasePriority& priority,
75  core::ActionProviderPtr& pProvider);
76 
77 // attributes
78 protected:
79  attr::GaussianNoiseStatsPtr _pGaussianNoiseStats;
80  attr::HistogramDataPtr _pHistogram;
81 };
82 
85 
86 } // end of namespace filter
87 } // end of namespace imaproc
88 } // end of namespace ipsdk
89 
90 #endif // __IPSDKIPLFILTERING_PATCHBASEDBILATERAL3DIMGLVL2_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL2_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
boost::shared_ptr< ipsdk::imaproc::attr::HistogramData > HistogramDataPtr
shared pointer to ipsdk::imaproc::HistogramData
Definition: HistogramData.h:231
boost::shared_ptr< ipsdk::imaproc::attr::GaussianNoiseStats > GaussianNoiseStatsPtr
shared pointer to ipsdk::imaproc::attr::GaussianNoiseStats
Definition: GaussianNoiseStats.h:149
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
Definition of import/export macro for library.