IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MatchStatsImgLvl1.h
1 // MatchStatsImgLvl1.h:
3 // --------------------
4 //
14 
15 #ifndef __IPSDKIPLINTENSITYTRANSFORM_MATCHSTATSIMGLVL1_H__
16 #define __IPSDKIPLINTENSITYTRANSFORM_MATCHSTATSIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptRefStatsIndicators.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InMatchStatsCriterion.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/Optional/InOptRefImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/StatsResult.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace itrans {
33 
36 
37 // declare processor class
38 IPSDK_DECLARE_LVL1_PROCESSOR(REP_ASYNC1, IPSDKIPLIntensityTransform, MatchStatsImg,
39  (ipsdk::imaproc::matchSize(_pInImg, _pOutImg) &&
41  (ipsdk::processor::Not(ipsdk::processor::isSet(_pInOptRefStatsIndicators))),
42  (ipsdk::processor::isSet(_pInOptRefStatsIndicators))))),
43  //ipsdk::processor::none(),
44  (((ipsdk)(imaproc)(attr))(InImg))
45  (((ipsdk)(imaproc)(attr))(InOptRefImg))
46  (((ipsdk)(imaproc)(attr))(InOptRefStatsIndicators))
47  (((ipsdk)(imaproc)(attr))(InMatchStatsCriterion))
48  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::duplicateInOut)(_pInImg)))
49 
50 // methods
51 public:
52  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
53  const core::BasePriority& priority,
54  core::ActionProviderPtr& pProvider);
55 
56  processor::RetrievalResult statsMsr(const core::BasePriority& priority, core::ActionProviderPtr& pProvider, const ipsdk::image::ImageConstPtr& pInImg, ipsdk::imaproc::attr::StatsResultPtr& pStatsRes);
57  processor::RetrievalResult adjustDynamicMinMax(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
58  processor::RetrievalResult adjustDynamicMeanStdDev(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
59 
60 protected:
61 
62 // attributes
63 protected:
65  attr::StatsResultConstPtr _pRefStats;
66  attr::StatsResultConstPtr _pInStats;
67  attr::StatsResultPtr _pResStats;
68 
70  ipUInt32 _iterOffset;
71 
72 };
73 
76 
77 } // end of namespace itrans
78 } // end of namespace imaproc
79 } // end of namespace ipsdk
80 
81 #endif // __IPSDKIPLINTENSITYTRANSFORM_MATCHSTATSIMGLVL1_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
boost::shared_ptr< const ipsdk::imaproc::attr::StatsResult > StatsResultConstPtr
shared pointer to const ipsdk::imaproc::attr::StatsResult
Definition: StatsResult.h:210
IPSDKBASEPROCESSING_API RulePtr Not(const RulePtr &pRule)
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
Definition of import/export macro for library.
boost::shared_ptr< const BaseImage > ImageConstPtr
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type isSet(const boost::shared_ptr< AttributeType > &pAttribute)
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
IPSDKBASEPROCESSING_API RulePtr If(const RulePtr &pPredicate, const RulePtr &pRuleTrue)
boost::shared_ptr< ipsdk::imaproc::attr::StatsResult > StatsResultPtr
shared pointer to ipsdk::imaproc::attr::StatsResult
Definition: StatsResult.h:206
uint32_t ipUInt32