IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AppendColorChannelImgLvl1.h
1 // AppendColorChannelImgLvl1.h:
3 // ----------------------------
4 //
16 
17 #ifndef __IPSDKIPLCOLOR_APPENDCOLORCHANNELIMGLVL1_H__
18 #define __IPSDKIPLCOLOR_APPENDCOLORCHANNELIMGLVL1_H__
19 
25 
26 // Attributes headers
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg1.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg2.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutColorImg.h>
30 
31 namespace ipsdk {
32 namespace imaproc {
33 namespace color {
34 
37 
38 // declare processor class
39 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLColor, AppendColorChannelImg,
40  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_XYZT, _pInImg1, _pInImg2) &&
41  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_XYZT, _pInImg1, _pOutColorImg) &&
42  ipsdk::imaproc::color::matchAppendChannel(_pInImg1, _pInImg2, _pOutColorImg) &&
43  ipsdk::imaproc::matchBufferType(_pInImg1, _pInImg2) &&
44  ipsdk::imaproc::matchBufferType(_pInImg1, _pOutColorImg),
45  (((ipsdk)(imaproc)(attr))(InImg1))
46  (((ipsdk)(imaproc)(attr))(InImg2))
47  (((ipsdk)(imaproc)(attr))(OutColorImg)(customOutput)(outputAppendColor(_pInImg1, _pInImg2))))
48 
49 // methods
50 public:
51 
52 protected:
53 
54 // attributes
55 protected:
56 
57 };
58 
61 
62 } // end of namespace color
63 } // end of namespace imaproc
64 } // end of namespace ipsdk
65 
66 #endif // __IPSDKIPLCOLOR_APPENDCOLORCHANNELIMGLVL1_H__
Definition of import/export macro for library.
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
Utility functions for color attribute rules management.
IPSDKIPLCOLOR_API CustomImageInfoPtr outputAppendColor(const ImageAttributeConstPtr &pInputAttribute1, const ImageAttributeConstPtr &pInputAttribute2)
function allowing to compute the number of channels of the append color algorithm output ...
processor::OutputInitializerPtr customOutput(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const CustomImageInfoPtr &pCustomImageInfo)
IPSDKIPLCOLOR_API processor::RulePtr matchAppendChannel(const ImageAttributeConstPtr &pInputImageAttribute1, const ImageAttributeConstPtr &pinputImageAttribute2, const ImageAttributeConstPtr &pOutputImageAttribute)
function allowing to check that a output number of channels is the sum of the two input number of cha...
Utility functions for color output initializer management.