IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ColorConvertImgLvl3.h
1 // ColorConvertImgLvl3.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKIPLCOLOR_COLORCONVERTIMGLVL3_H__
16 #define __IPSDKIPLCOLOR_COLORCONVERTIMGLVL3_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStripColor2d/InColorYStrip2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InColorConversionTransform.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStripColor2d/OutColorYStrip2d.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 namespace color {
30 
33 
34 // declare processing algorithm
35 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLColor, ColorConvertImg,
36  ipsdk::imaproc::matchPlanarSize(_pInColorYStrip2d, _pOutColorYStrip2d) &&
37  ipsdk::imaproc::color::matchColorSpace(_pInColorYStrip2d, _pOutColorYStrip2d, _pInColorConversionTransform),
38  (((ipsdk)(imaproc)(attr))(InColorYStrip2d))
39  (((ipsdk)(imaproc)(attr))(InColorConversionTransform))
40  (((ipsdk)(imaproc)(attr))(OutColorYStrip2d)))
41 
42  // implementation of image processing data identifier retrieval method
43  // for function selector usage
44  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InColorYStrip2d))
45  ((STRIP)(OutColorYStrip2d)));
46 
47  // declaration of parsed data during processing
48  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((RAWSTRIP)(InColorYStrip2d))
49  ((RAWSTRIP)(OutColorYStrip2d)));
50 
51 // methods
52 public:
53 
54 protected:
56  template <typename BufInType, typename BufOutType,
57  ipsdk::eInstructionSet::domain ISFma,
58  ipsdk::eInstructionSet::domain IS>
59  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
60 
61 // attributes
62 protected:
63 
64 };
65 
68 
69 } // end of namespace color
70 } // end of namespace imaproc
71 } // end of namespace ipsdk
72 
73 #endif // __IPSDKIPLCOLOR_COLORCONVERTIMGLVL3_H__
Definition of import/export macro for library.
Utility functions for color attribute rules management.
IPSDKIPLCOLOR_API processor::RulePtr matchColorSpace(const ImageAttributeConstPtr &pInputImageAttribute, const ImageAttributeConstPtr &pOutputImageAttribute, const boost::shared_ptr< const attr::InColorConversionTransform > &pInColorConversionTransform)
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)