IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ColorMapping2dImgLvl1.h
1 // ColorMapping2dImgLvl1.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKIPLINTENSITYTRANSFORM_COLORMAPPING2DIMGLVL1_H__
16 #define __IPSDKIPLINTENSITYTRANSFORM_COLORMAPPING2DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InGreyUIntImg.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutRgbUInt8Img.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptPISmoothRgbColorMap.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptPICyclicRgbColorMap.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace itrans {
31 
34 
35 // declare processor class
36 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLIntensityTransform, ColorMapping2dImg,
37  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_XYZT, _pInGreyUIntImg, _pOutRgbUInt8Img) &&
38  ((ipsdk::processor::isSet(_pInOptPISmoothRgbColorMap) && ipsdk::processor::Not(ipsdk::processor::isSet(_pInOptPICyclicRgbColorMap))) ||
39  (ipsdk::processor::isSet(_pInOptPICyclicRgbColorMap) && ipsdk::processor::Not(ipsdk::processor::isSet(_pInOptPISmoothRgbColorMap)))) &&
40 
41  ipsdk::processor::If(ipsdk::processor::isSet(_pInOptPISmoothRgbColorMap),
42  ipsdk::imaproc::isGrey(_pInOptPISmoothRgbColorMap) &&
43  ((ipsdk::imaproc::is2d(_pInOptPISmoothRgbColorMap) && ipsdk::imaproc::isSingle(_pInOptPISmoothRgbColorMap)) ||
44  ipsdk::imaproc::matchImagePlans(_pInOptPISmoothRgbColorMap, _pInGreyUIntImg, eImagePlansMatchPolicy::eIPMP_ZT)),
45 
46  ipsdk::imaproc::isGrey(_pInOptPICyclicRgbColorMap) &&
47  ((ipsdk::imaproc::is2d(_pInOptPICyclicRgbColorMap) && ipsdk::imaproc::isSingle(_pInOptPICyclicRgbColorMap)) ||
48  ipsdk::imaproc::matchImagePlans(_pInOptPICyclicRgbColorMap, _pInGreyUIntImg, eImagePlansMatchPolicy::eIPMP_ZT))),
49 
50  (((ipsdk)(imaproc)(attr))(InGreyUIntImg))
51  (((ipsdk)(imaproc)(attr))(InOptPISmoothRgbColorMap))
52  (((ipsdk)(imaproc)(attr))(InOptPICyclicRgbColorMap))
53  (((ipsdk)(imaproc)(attr))(OutRgbUInt8Img)(ipsdk::imaproc::duplicateRgbInOut)(_pInGreyUIntImg)(ipsdk::image::eImageBufferType::eIBT_UInt8)))
54 
55 // methods
56 public:
57 
58 // attributes
59 protected:
60 
61 };
62 
65 
66 } // end of namespace itrans
67 } // end of namespace imaproc
68 } // end of namespace ipsdk
69 
70 #endif // __IPSDKIPLINTENSITYTRANSFORM_COLORMAPPING2DIMGLVL1_H__
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKBASEPROCESSING_API RulePtr Not(const RulePtr &pRule)
Definition of import/export macro for library.
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type isSet(const boost::shared_ptr< AttributeType > &pAttribute)
processor::OutputInitializerPtr duplicateRgbInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
IPSDKBASEPROCESSING_API RulePtr If(const RulePtr &pPredicate, const RulePtr &pRuleTrue)