IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ColorConvertImgLvl1.h
1 // ColorConvertImgLvl1.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKIPLCOLOR_COLORCONVERTIMGLVL1_H__
16 #define __IPSDKIPLCOLOR_COLORCONVERTIMGLVL1_H__
17 
22 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/StatsResult.h>
23 
24 // Attributes headers
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InColorImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InColorConversionTransform.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1RealImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutColorImg.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace color {
33 
36 
37 // declare processor class
38 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC3, IPSDKIPLColor, ColorConvertImg,
39  ipsdk::imaproc::matchSize(ipsdk::imaproc::eMatchImageSizeType::eMIST_XYZT, _pInColorImg, _pOutColorImg) &&
40  ipsdk::processor::ifIsSet(_pOutOptWk1RealImg,
41  ipsdk::imaproc::matchSize(_pInColorImg, _pOutOptWk1RealImg)) &&
42  ipsdk::imaproc::color::matchColorSpace(_pInColorImg, _pOutColorImg, _pInColorConversionTransform),
43  (((ipsdk)(imaproc)(attr))(InColorImg))
44  (((ipsdk)(imaproc)(attr))(InColorConversionTransform))
45  (((ipsdk)(imaproc)(attr))(OutOptWk1RealImg))
46  (((ipsdk)(imaproc)(attr))(OutColorImg)(customOutput)(outputTargetColorSpace(_pInColorImg, _pInColorConversionTransform))))
47 
48 // methods
49 public:
50 
51 protected:
52 
53  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
54  const core::BasePriority& priority,
55  core::ActionProviderPtr& pProvider);
56 
57  processor::RetrievalResult stats(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
58  processor::RetrievalResult convert(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
59  processor::RetrievalResult normalize(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
60  processor::RetrievalResult callLvl2(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
61 
62 // attributes
63 protected:
66 
69 
70 };
71 
74 
75 } // end of namespace color
76 } // end of namespace imaproc
77 } // end of namespace ipsdk
78 
79 #endif // __IPSDKIPLCOLOR_COLORCONVERTIMGLVL1_H__
Definition of import/export macro for library.
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
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)
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
IPSDKIPLCOLOR_API CustomImageInfoPtr outputTargetColorSpace(const ImageAttributeConstPtr &pInputAttribute, const boost::shared_ptr< const attr::InColorConversionTransform > &pInColorConversionTransform)
processor::OutputInitializerPtr customOutput(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const CustomImageInfoPtr &pCustomImageInfo)
IPSDKGEOMETRY_API Vector2d convert(const Point2d< T > &pt)
boost::shared_ptr< const BaseImage > ImageConstPtr
IPSDKBASESHAPESEGMENTATION_API void normalize(ipsdk::geom::Shape2dPolygonWithHoles &polygonWithHoles)
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
Utility functions for color output initializer management.
boost::shared_ptr< ipsdk::imaproc::attr::StatsResult > StatsResultPtr
shared pointer to ipsdk::imaproc::attr::StatsResult
Definition: StatsResult.h:206