IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Zoom2dImgLvl3.h
1 // Zoom2dImgLvl3.h:
3 // --------------
4 //
14 
15 #ifndef __IPSDKIPLGEOMETRICTRANSFORM_ZOOM2DIMGLVL3_H__
16 #define __IPSDKIPLGEOMETRICTRANSFORM_ZOOM2DIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InScaleFactor2d.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InZoomInterpolationMethod.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutYStrip2d.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 namespace gtrans {
30 
33 
34 // declare processing algorithm
35 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLGeometricTransform, Zoom2dImg,
37  (((ipsdk)(imaproc)(attr))(InYStrip2d))
38  (((ipsdk)(imaproc)(attr))(InZoomInterpolationMethod))
39  (((ipsdk)(imaproc)(attr))(InScaleFactor2d))
40  (((ipsdk)(imaproc)(attr))(OutYStrip2d)))
41 
42  // implementation of image processing data identifier retrieval method
43  // for function selector usage
44  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InYStrip2d))
45  ((STRIP)(OutYStrip2d)));
46 
47  // declaration of parsed data during processing
49 
50 // methods
51 public:
52 
53 protected:
55  template <typename BufInType, typename BufOutType, ipsdk::eInstructionSet::domain IS>
56  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
57 
58  template <typename BufInType, typename BufOutType, ipsdk::eInstructionSet::domain IS>
59  ipsdk::BoolResult nearestNeighbourProcessFunction(const ipsdk::processor::ProcessingInfo& info);
60 
61  template <typename BufInType, typename BufOutType, ipsdk::eInstructionSet::domain IS, ipUInt64 K, class Interpolator>
62  ipsdk::BoolResult continuousInterpolProcessFunction(const ipsdk::processor::ProcessingInfo& info);
63 
64  template <typename BufInType, typename BufOutType, ipsdk::eInstructionSet::domain IS>
65  ipsdk::BoolResult volumeWeightedMeanProcessFunction(const ipsdk::processor::ProcessingInfo& info);
66 
67 // attributes
68 protected:
69  boost::scoped_array<ipUInt32> _arrayP0X;
70  boost::scoped_array<ipUInt8> _arrayPDX;
71  boost::scoped_array<ipReal32> _arrayXCoef;
72  boost::scoped_array<ipReal32> _arrayYCubicInterpolAlongX;
73 };
74 
77 
78 } // end of namespace gtrans
79 } // end of namespace imaproc
80 } // end of namespace ipsdk
81 
82 #endif // __IPSDKIPLGEOMETRICTRANSFORM_ZOOM2DIMGLVL3_H__
#define IPSDK_DECLARE_ALGORITHM_NOPARSED_DATA()
IPSDKBASEPROCESSING_API RulePtr none()
Definition of import/export macro for library.
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)