IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ShadingCorrectionImgLvl3.h
1 // ShadingCorrectionImgLvl3.h:
3 // --------------------
4 //
14 
15 #ifndef __IPSDKIPLINTENSITYTRANSFORM_SHADINGCORRECTIONIMGLVL3_H__
16 #define __IPSDKIPLINTENSITYTRANSFORM_SHADINGCORRECTIONIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InOptBlackYStrip2d.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InWhiteYStrip2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutYStrip2d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InFactor.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOffset.h>
28 
29 namespace ipsdk {
30 namespace imaproc {
31 namespace itrans {
32 
35 
36 // declare processing algorithm
37 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLIntensityTransform, ShadingCorrectionImg,
38  ipsdk::imaproc::matchSize(_pInYStrip2d, _pOutYStrip2d) &&
39  ipsdk::processor::ifIsSet(_pInOptBlackYStrip2d,
40  ipsdk::imaproc::matchSizeAndType(_pInYStrip2d, _pInOptBlackYStrip2d)) &&
41  ipsdk::imaproc::matchSizeAndType(_pInYStrip2d, _pInWhiteYStrip2d),
42  (((ipsdk)(imaproc)(attr))(InYStrip2d))
43  (((ipsdk)(imaproc)(attr))(InOptBlackYStrip2d))
44  (((ipsdk)(imaproc)(attr))(InWhiteYStrip2d))
45  (((ipsdk)(imaproc)(attr))(InOffset))
46  (((ipsdk)(imaproc)(attr))(InFactor))
47  (((ipsdk)(imaproc)(attr))(OutYStrip2d)))
48 
49  // implementation of image processing data identifier retrieval method
50  // for function selector usage
51  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InYStrip2d))
52  ((STRIP)(OutYStrip2d)));
53 
54  // declaration of parsed data during processing
55  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((RAWSTRIP)(InYStrip2d))
56  ((RAWSTRIP)(InOptBlackYStrip2d))
57  ((RAWSTRIP)(InWhiteYStrip2d))
58  ((RAWSTRIP)(OutYStrip2d)));
59 
60 // methods
61 protected:
62 
63 protected:
65  template <typename InBufType, typename OutBufType,
66  ipsdk::eInstructionSet::domain IS>
67  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
68 
69 // attributes
70 protected:
71 
72 };
73 
76 
77 } // end of namespace itrans
78 } // end of namespace imaproc
79 } // end of namespace ipsdk
80 
81 #endif // __IPSDKIPLINTENSITYTRANSFORM_SHADINGCORRECTIONIMGLVL3_H__
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
Definition of import/export macro for library.
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)