IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Median3dImgLvl1.h
1 // Median3dImgLvl1.h:
3 // ------------------
4 //
14 
15 #ifndef __IPSDKIPLFILTERING_MEDIAN3DIMGLVL1_H__
16 #define __IPSDKIPLFILTERING_MEDIAN3DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/3d/InImg3d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InHalfKnlSizeX.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InHalfKnlSizeY.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InHalfKnlSizeZ.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOutOptAllow8bitsCompression.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/StatsResult.h>
30 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/Range.h>
31 
32 namespace ipsdk {
33 namespace imaproc {
34 namespace filter {
35 
38 
39 // declare processor class
40 IPSDK_DECLARE_LVL1_PROCESSOR(REP_ASYNC1, IPSDKIPLFiltering, Median3dImg,
41  ipsdk::imaproc::matchSize(_pInImg3d, _pOutImg),
42  (((ipsdk)(imaproc)(attr))(InImg3d))
43  (((ipsdk)(imaproc)(attr))(InHalfKnlSizeX))
44  (((ipsdk)(imaproc)(attr))(InHalfKnlSizeY))
45  (((ipsdk)(imaproc)(attr))(InHalfKnlSizeZ))
46  (((ipsdk)(imaproc)(attr))(InOutOptAllow8bitsCompression))
47  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::duplicateInOut)(_pInImg3d)))
48 
49 // methods
50 public:
51 
52 protected:
53  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
54  const core::BasePriority& priority,
55  core::ActionProviderPtr& pProvider);
56 
57  processor::RetrievalResult genericMedian(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
58  processor::RetrievalResult statsMsr(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
59  processor::RetrievalResult histoMedian(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
60 
61 // attributes
62 protected:
64  ipsdk::ipBool _bNoMore;
65 
67  ipsdk::ipUInt32 _hlfKnlSzX;
68  ipsdk::ipUInt32 _hlfKnlSzY;
69  ipsdk::ipUInt32 _hlfKnlSzZ;
70 
72  attr::StatsResultPtr _pStatsPtr;
73  attr::RangePtr _pInRange;
74 
75 };
76 
79 
80 } // end of namespace filter
81 } // end of namespace imaproc
82 } // end of namespace ipsdk
83 
84 #endif // __IPSDKIPLFILTERING_MEDIAN3DIMGLVL1_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::shared_ptr< ipsdk::imaproc::attr::Range > RangePtr
shared pointer to ipsdk::imaproc::attr::Range
Definition: Range.h:153
bool ipBool
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
Definition of import/export macro for library.
boost::shared_ptr< ipsdk::imaproc::attr::StatsResult > StatsResultPtr
shared pointer to ipsdk::imaproc::attr::StatsResult
Definition: StatsResult.h:206
uint32_t ipUInt32