21 #ifndef __IPSDKIMAGEPROCESSING_PREVIOUSIMAGEYSTRIP2DSPLIT_H__ 22 #define __IPSDKIMAGEPROCESSING_PREVIOUSIMAGEYSTRIP2DSPLIT_H__ 24 #include <IPSDKImageProcessing/DataSplit/Strip/PreviousYStrip2d/BasePreviousImageYStrip2dSplit.h> 32 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
34 typename TAttribute::ValueType>
67 void init(
const boost::shared_ptr<InputDataType>& pImage,
78 const boost::shared_ptr<OutputType>& pImageYStrip2d);
88 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
89 inline const std::string&
92 return TAttribute::getObjectNameStr();
95 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
96 inline const std::string&
99 return TAttribute::getToolTipStr();
102 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
108 this->initBase(pImage, stripParsingDirection);
111 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
117 "This attribute is not part of processor class");
119 return dynamic_cast<const TProcessor*
>(&processor) != 0;
122 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
125 const boost::shared_ptr<OutputType>& pImageYStrip2d)
128 TProcessor& tProcessor =
static_cast<TProcessor&
>(processor);
131 tProcessor.TProcessor::template set<TAttribute>(pImageYStrip2d);
142 #endif // __IPSDKIMAGEPROCESSING_PREVIOUSIMAGEYSTRIP2DSPLIT_H__ TAttribute AttributeType
attribute type associated to object
Definition: PreviousImageYStrip2dSplit.h:42
TAttribute::ValueType OutputType
output data type for split operation
Definition: PreviousImageYStrip2dSplit.h:45
Class allowing to encapsulate a typed process result associated to a string description.
Definition: ProcessingResult.h:28
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
bool checkProcessorType(const processor::BaseProcessor &processor)
check processor type in derived class
Definition: PreviousImageYStrip2dSplit.h:113
BoolResult processAttribute(processor::BaseProcessor &processor, const boost::shared_ptr< OutputType > &pImageYStrip2d)
initialize processor attribute associate to split operation for a given element index ...
Definition: PreviousImageYStrip2dSplit.h:124
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
Concrete class for split operation allowing to generate y strips 2d :
Definition: PreviousImageYStrip2dSplit.h:33
TProcessor ProcessorType
processor type associated to object
Definition: PreviousImageYStrip2dSplit.h:39
void init(const boost::shared_ptr< InputDataType > &pImage, const image::eStripParsingDirection &stripParsingDirection)
initialization method for splitted objects
Definition: PreviousImageYStrip2dSplit.h:104
const std::string & getAttributeName() const
retrieve attribute name associated to split operation
Definition: PreviousImageYStrip2dSplit.h:90
eStripParsingDirection
Enumerate describing strip parsing direction.
Definition: ImageStripTypes.h:72
Base class for split operation allowing to generate y strips 2d :
Definition: BasePreviousImageYStrip2dSplit.h:40
const std::string & getAttributeToolTip() const
retrieve attribute tooltip associated to split operation
Definition: PreviousImageYStrip2dSplit.h:97