IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AdaptiveContrastEnhancement3dImgLvl3.h
1 // AdaptiveContrastEnhancement3dImgLvl3.h:
3 // ---------------------------------------
4 //
14 
15 #ifndef __IPSDKIPLINTENSITYTRANSFORM_ADAPTIVECONTRASTENHANCEMENT3DIMGLVL3_H__
16 #define __IPSDKIPLINTENSITYTRANSFORM_ADAPTIVECONTRASTENHANCEMENT3DIMGLVL3_H__
17 
20 #include <IPSDKBaseData/Pattern/OffsetXYZ.h>
21 #include <vector>
22 #include <boost/scoped_array.hpp>
23 
24 // Attributes headers
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOutputRange.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/OutZStrip3d.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3dWithKernel/InKnlZStrip3d.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InArithmeticVal.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InBlendMultiplier.h>
30 
31 namespace ipsdk {
32 namespace imaproc {
33 namespace itrans {
34 
37 
38 // declare processing algorithm
39 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLIntensityTransform, AdaptiveContrastEnhancement3dImg,
40  ipsdk::imaproc::matchSize(_pInKnlZStrip3d, _pOutZStrip3d),
41  (((ipsdk)(imaproc)(attr))(InKnlZStrip3d))
42  (((ipsdk)(imaproc)(attr))(InOutputRange))
43  (((ipsdk)(imaproc)(attr))(InArithmeticVal))
44  (((ipsdk)(imaproc)(attr))(InBlendMultiplier))
45  (((ipsdk)(imaproc)(attr))(OutZStrip3d)))
46 
47  // implementation of image processing data identifier retrieval method
48  // for function selector usage
49  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InKnlZStrip3d))
50  ((STRIP)(OutZStrip3d)));
51 
52  // declaration of parsed data during processing
53  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InKnlZStrip3d))
54  ((LINESTRIP)(OutZStrip3d)));
55 
56 // methods
57 public:
58 
59 protected:
63 
65  void clearIntermediateData();
66 
68  template <typename BufInType, typename BufOutType,
69  ipsdk::eInstructionSet::domain IS>
70  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
71 
72 // attributes
73 protected:
75  typedef std::vector<OffsetXYZ> OffsetColl;
76 
78  OffsetColl _offsetColl;
79 
81  typedef boost::scoped_array<const void*> BufColl;
82 
84  BufColl _pBufColl;
85 
86 };
87 
90 
91 } // end of namespace itrans
92 } // end of namespace imaproc
93 } // end of namespace ipsdk
94 
95 #endif // __IPSDKIPLINTENSITYTRANSFORM_ADAPTIVECONTRASTENHANCEMENT3DIMGLVL3_H__
ipsdk::core::ExecResult preProcess()
method called before processing
IPSDK_DECLARE_GPU_PROCESSING_ALGORITHM(IPSDKIPLIntensityTransform, AdaptiveContrastEnhancement2dImg, ipsdk::imaproc::matchSize(_pInSubGpuImg, _pOutImg),(((ipsdk)(imaproc)(attr))(InSubGpuImg))(((ipsdk)(imaproc)(attr))(InHalfKnlSizeX))(((ipsdk)(imaproc)(attr))(InHalfKnlSizeY))(((ipsdk)(imaproc)(attr))(InOutputRange))(((ipsdk)(imaproc)(attr))(InArithmeticVal))(((ipsdk)(imaproc)(attr))(InBlendMultiplier))(((ipsdk)(imaproc)(attr))(OutImg))) IPSDKCUDA_DECLARE_ALGORITHM_FUNCTION_SELECTOR((InSubGpuImg)(OutImg)) public void clearIntermediateData()
method called before processing
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)