IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ParaboloidShadingCorrection2dImgLvl3.h
1 // ParaboloidShadingCorrection2dImgLvl3.h:
3 // --------------------
4 //
15 
16 #ifndef __IPSDKIPLINTENSITYTRANSFORM_PARABOLOIDSHADINGCORRECTION2DIMGLVL3_H__
17 #define __IPSDKIPLINTENSITYTRANSFORM_PARABOLOIDSHADINGCORRECTION2DIMGLVL3_H__
18 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InParaboloidParams3d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InOptBlackYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InYStrip2d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutYStrip2d.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InFactor.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOffset.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace itrans {
33 
36 
37 // declare processing algorithm
38 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLIntensityTransform, ParaboloidShadingCorrection2dImg,
39  ipsdk::imaproc::matchSize(_pInYStrip2d, _pOutYStrip2d) &&
40  ipsdk::processor::ifIsSet(_pInOptBlackYStrip2d,
41  ipsdk::imaproc::matchSizeAndType(_pInYStrip2d, _pInOptBlackYStrip2d)),
42  (((ipsdk)(imaproc)(attr))(InYStrip2d))
43  (((ipsdk)(imaproc)(attr))(InOptBlackYStrip2d))
44  (((ipsdk)(imaproc)(attr))(InParaboloidParams3d))
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(((LINESTRIP)(InYStrip2d))
56  ((LINESTRIP)(InOptBlackYStrip2d))
57  ((LINESTRIP)(OutYStrip2d)));
58 
59 // methods
60 protected:
61 
62 protected:
64  template <typename InBufType, typename OutBufType,
65  ipsdk::eInstructionSet::domain IS>
66  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
67 
68 // attributes
69 protected:
70  boost::scoped_array<ipReal32> _x;
71 };
72 
75 
76 } // end of namespace itrans
77 } // end of namespace imaproc
78 } // end of namespace ipsdk
79 
80 #endif // __IPSDKIPLINTENSITYTRANSFORM_PARABOLOIDSHADINGCORRECTION2DIMGLVL3_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)