16 #ifndef __IPSDKIMAGEPROCESSING_IMAGEYSTRIP2DWITHKERNELSPLIT_H__ 17 #define __IPSDKIMAGEPROCESSING_IMAGEYSTRIP2DWITHKERNELSPLIT_H__ 19 #include <IPSDKImageProcessing/DataSplit/Strip/YStrip2dWithKernel/BaseImageYStrip2dWithKernelSplit.h> 27 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
29 typename TAttribute::ValueType>
68 void init(
const boost::shared_ptr<InputDataType>& pImage,
84 void init(
const boost::shared_ptr<InputDataType>& pImage,
100 void init(
const boost::shared_ptr<InputDataType>& pImage,
116 const boost::shared_ptr<OutputType>& pImageYStrip2dWithKernel);
126 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
127 inline const std::string&
130 return TAttribute::getObjectNameStr();
133 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
134 inline const std::string&
137 return TAttribute::getToolTipStr();
140 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
148 this->initBase(pImage,
150 stripAllocationType, stripParsingDirection);
153 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
161 this->initBase(pImage,
162 structuringElementXY,
163 stripAllocationType, stripParsingDirection);
166 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
177 this->initBase(pImage,
178 startingKernelSizeX, endingKernelSizeX, startingKernelSizeY, endingKernelSizeY,
179 stripAllocationType, stripParsingDirection);
182 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
188 "This attribute is not part of processor class");
190 return dynamic_cast<const TProcessor*
>(&processor) != 0;
193 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
196 const boost::shared_ptr<OutputType>& pImageYStrip2dWithKernel)
199 TProcessor& tProcessor =
static_cast<TProcessor&
>(processor);
202 tProcessor.TProcessor::template set<TAttribute>(pImageYStrip2dWithKernel);
213 #endif // __IPSDKIMAGEPROCESSING_IMAGEYSTRIP2DWITHKERNELSPLIT_H__ 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
Class encapsulating a 2d kernel spanning along x and y axis.
Definition: KernelXY.h:34
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
bool checkProcessorType(const processor::BaseProcessor &processor)
check processor type in derived class
Definition: ImageYStrip2dWithKernelSplit.h:184
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
TProcessor ProcessorType
processor type associated to object
Definition: ImageYStrip2dWithKernelSplit.h:34
BoolResult processAttribute(processor::BaseProcessor &processor, const boost::shared_ptr< OutputType > &pImageYStrip2dWithKernel)
initialize processor attribute associate to split operation for a given element index ...
Definition: ImageYStrip2dWithKernelSplit.h:195
Class encapsulating a 2d structuring element spanning along x and y axis.
Definition: StructuringElementXY.h:32
const std::string & getAttributeToolTip() const
retrieve attribute tooltip associated to split operation
Definition: ImageYStrip2dWithKernelSplit.h:135
Concrete class for split operation generating image y strips 2d associated to a kernel.
Definition: ImageYStrip2dWithKernelSplit.h:28
TAttribute AttributeType
attribute type associated to object
Definition: ImageYStrip2dWithKernelSplit.h:37
eStripParsingDirection
Enumerate describing strip parsing direction.
Definition: ImageStripTypes.h:72
const std::string & getAttributeName() const
retrieve attribute name associated to split operation
Definition: ImageYStrip2dWithKernelSplit.h:128
TAttribute::ValueType OutputType
output data type for split operation
Definition: ImageYStrip2dWithKernelSplit.h:40
void init(const boost::shared_ptr< InputDataType > &pImage, const KernelXY &kernelXY, const image::eStripAllocationType &stripAllocationType, const image::eStripParsingDirection &stripParsingDirection)
initialization method for splitted objects
Definition: ImageYStrip2dWithKernelSplit.h:142
Base class for split operation generating image y strips 2d associated to a kernel.
Definition: BaseImageYStrip2dWithKernelSplit.h:39