15 #ifndef __IPSDKIMAGEPROCESSING_IMAGEYSTRIPCOLOR2DSPLIT_H__ 16 #define __IPSDKIMAGEPROCESSING_IMAGEYSTRIPCOLOR2DSPLIT_H__ 18 #include <IPSDKImageProcessing/DataSplit/Strip/YStripColor2d/BaseImageYStripColor2dSplit.h> 26 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
28 typename TAttribute::ValueType>
61 void init(
const boost::shared_ptr<InputDataType>& pImage,
64 const bool bAllowGreyColorGeometry);
74 const boost::shared_ptr<OutputType>& pImageYStripColor2d);
84 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
85 inline const std::string&
88 return TAttribute::getObjectNameStr();
91 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
92 inline const std::string&
95 return TAttribute::getToolTipStr();
98 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
103 const bool bAllowGreyColorGeometry)
106 this->initBase(pImage, stripAllocationType, stripParsingDirection, bAllowGreyColorGeometry);
109 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
115 "This attribute is not part of processor class");
117 return dynamic_cast<const TProcessor*
>(&processor) != 0;
120 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
123 const boost::shared_ptr<OutputType>& pImageYStripColor2d)
126 TProcessor& tProcessor =
static_cast<TProcessor&
>(processor);
129 tProcessor.TProcessor::template set<TAttribute>(pImageYStripColor2d);
140 #endif // __IPSDKIMAGEPROCESSING_IMAGEYSTRIPCOLOR2DSPLIT_H__ Class allowing to encapsulate a typed process result associated to a string description.
Definition: ProcessingResult.h:28
Concrete class for split operation generating color image y strips 2d.
Definition: ImageYStripColor2dSplit.h:27
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void init(const boost::shared_ptr< InputDataType > &pImage, const image::eStripAllocationType &stripAllocationType, const image::eStripParsingDirection &stripParsingDirection, const bool bAllowGreyColorGeometry)
initialization method for splitted objects
Definition: ImageYStripColor2dSplit.h:100
Base class for split operation generating color image y strips 2d.
Definition: BaseImageYStripColor2dSplit.h:32
Base class for processor class.
Definition: BaseProcessor.h:43
structure allowing to check whether a given attribute exists in attribute collection information ...
Definition: AttributeCollInfoCheckMacros.h:131
eStripAllocationType
Enumerate describing image strip allocation policy.
Definition: ImageStripTypes.h:88
TAttribute::ValueType OutputType
output data type for split operation
Definition: ImageYStripColor2dSplit.h:39
bool checkProcessorType(const processor::BaseProcessor &processor)
check processor type in derived class
Definition: ImageYStripColor2dSplit.h:111
const std::string & getAttributeName() const
retrieve attribute name associated to split operation
Definition: ImageYStripColor2dSplit.h:86
TProcessor ProcessorType
processor type associated to object
Definition: ImageYStripColor2dSplit.h:33
eStripParsingDirection
Enumerate describing strip parsing direction.
Definition: ImageStripTypes.h:72
const std::string & getAttributeToolTip() const
retrieve attribute tooltip associated to split operation
Definition: ImageYStripColor2dSplit.h:93
BoolResult processAttribute(processor::BaseProcessor &processor, const boost::shared_ptr< OutputType > &pImageYStripColor2d)
initialize processor attribute associate to split operation for a given element index ...
Definition: ImageYStripColor2dSplit.h:122
TAttribute AttributeType
attribute type associated to object
Definition: ImageYStripColor2dSplit.h:36