IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType > Class Template Referenceabstract

Base class for y strip 2d parsed line by line and associated to a kernel. More...

#include <BaseLineYStrip2dWithKernelParser.h>

Inheritance diagram for ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >:
ipsdk::imaproc::BaseStripParser ipsdk::imaproc::BaseImageParser ipsdk::processor::BaseDataParser ipsdk::imaproc::LineYStrip2dWithKernelParser< T, BaseStripAttributeClassType >

Public Types

typedef BaseStripAttributeClassType::ValueType ValueType
 value type associated to object
 
typedef BaseStripAttributeClassType::StorageType StorageType
 storage type associated to object
 

Public Member Functions

eStripParserType getStripParserType () const
 retrieve strip parser type
 
void init (const StorageType &pImageYStrip2dWithKernel)
 object initialization method More...
 
void setBorder2dPolicy (const image::Border2dPolicy &border2dPolicy)
 set border policy associated to data parser More...
 
const image::Border2dPolicygetBorder2dPolicy () const
 retrieve border policy associated to data parser More...
 
const ValueTypegetImageYStrip2dWithKernel () const
 retrieve input y strip 2d with kernel associated to object More...
 
ipUInt64 getBufferSize () const
 retrieve buffer size associated to current operation (number of elements for given buffer type) More...
 
template<typename T >
const T * getBuffer (const ipUInt64 knlRowIdx) const
 retrieve buffer associated to current operation More...
 
Constructors and destructors
 BaseLineYStrip2dWithKernelParser ()
 
virtual ~BaseLineYStrip2dWithKernelParser ()=0
 
Kernel informations
ipUInt64 getKernelSizeX () const
 retrieve full kernel X size associated to object More...
 
ipUInt64 getKernelSizeY () const
 retrieve full kernel Y size associated to object More...
 
ipUInt64 getStartingKernelSizeX () const
 retrieve starting kernel X size associated to object More...
 
ipUInt64 getEndingKernelSizeX () const
 retrieve ending kernel X size associated to object More...
 
ipUInt64 getStartingKernelSizeY () const
 retrieve starting kernel Y size associated to object More...
 
ipUInt64 getEndingKernelSizeY () const
 retrieve ending kernel Y size associated to object More...
 
- Public Member Functions inherited from ipsdk::imaproc::BaseStripParser
eImageParserType getImageParserType () const
 retrieve image parser type
 
 BaseStripParser ()
 
virtual ~BaseStripParser ()=0
 
- Public Member Functions inherited from ipsdk::imaproc::BaseImageParser
processor::eDataParserType getDataParserType () const
 retrieve data parser type
 
 BaseImageParser ()
 
virtual ~BaseImageParser ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseDataParser
bool isInit () const
 retrieve object initialization flag
 
bool areDataInit () const
 retrieve data initialization flag More...
 
ipUInt64 getNbInitData () const
 retrieve number of initial data More...
 
ipUInt64 getNbMainData () const
 retrieve number of main data More...
 
ipUInt64 getNbFinalData () const
 retrieve number of final data More...
 
ipUInt64 getNbRealFinalData () const
 retrieve number of real final data (not virtual for alignment purpose only) More...
 
void clear ()
 clear object data
 
 BaseDataParser ()
 
virtual ~BaseDataParser ()=0
 
const eIOStatusgetAttributeIO () const
 retrieve associated attribute input/output status More...
 
ipUInt64 getNbElements () const
 retrieve number of elements associated to object More...
 
ipUInt64 getNbDataByElement () const
 retrieve total number of data by element More...
 
ipUInt64 getNbMinInitData () const
 retrieve minimum number of initial data to be processed More...
 
ipUInt64 getNbMinFinalData () const
 retrieve minimum number of final data to be processed More...
 
ipUInt64 getCurElementIdx () const
 retrieve current element index for iteration process More...
 
ipReal64 getUnAlignedValue () const
 retrieve used value for unaligned data More...
 
void setUnAlignedValue (const ipReal64 unAlignedValue)
 set used value for unaligned data More...
 

Static Public Attributes

static const eIOStatus::domain g_attributeIO = BaseStripAttributeClassType::g_dataIOStatus
 associated attribute Input/Output status
 

Protected Attributes

image::Border2dPolicyPtr _pBorder2dPolicy
 border policy associated to object More...
 
StorageType _pImageYStrip2dWithKernel
 shared pointer to y strip 2d with kernel
 
image::eStripParsingDirection _stripParsingDirection
 strip parsing direction
 
FragHybridBufferPtr _pCurDataBuffer
 pointer to buffer associated to data currently processed
 
FragHybridBufferPtr _pInitialDataBuffer
 buffer used to store initial data to process
 
FragHybridBufferPtr _pMainDataBuffer
 buffer used to store main data to process
 
FragHybridBufferPtr _pFinalDataBuffer
 buffer used to store final data to process
 

Additional Inherited Members

- Protected Member Functions inherited from ipsdk::processor::BaseDataParser
void initBase (const eIOStatus &attributeIO, const ipUInt64 nbElements, const ipUInt64 nbDataByElement, const ipUInt64 nbMinInitData, const ipUInt64 nbMinFinalData, const ipReal64 unAlignedDefaultValue)
 base class initialization method More...
 
virtual void initDataDerived (const ipUInt64 nbInitData, const ipUInt64 nbMainData, const ipUInt64 nbFinalData, const ipUInt64 nbRealFinalData, const ipReal64 unAlignedValue)=0
 initialize data for processing in derived class
 
virtual void prepareDataDerived (const ipUInt64 elementIdx)=0
 
virtual void syncOutFinalDataDerived ()
 synchronize final output data after processing
 
void initData (const ipUInt64 nbInitData, const ipUInt64 nbMainData, const ipUInt64 nbFinalData, const ipUInt64 nbRealFinalData)
 prepare data for processing for a given element index More...
 
void prepareData (const ipUInt64 elementIdx)
 prepare data for processing for a given element index More...
 

Detailed Description

template<typename BaseStripAttributeClassType>
class ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >

Base class for y strip 2d parsed line by line and associated to a kernel.

Author
E.Noirfalise
Date
2015/01/20

Member Function Documentation

◆ init()

template<typename BaseStripAttributeClassType >
void ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::init ( const StorageType pImageYStrip2dWithKernel)

object initialization method

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif pImageYStrip2dWithKernel.get() == 0
ipsdk::processor::IPSDKBaseProcessingExceptionif pImageYStrip2dWithKernel->isInit() == false

◆ setBorder2dPolicy()

template<typename BaseStripAttributeClassType >
void ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::setBorder2dPolicy ( const image::Border2dPolicy border2dPolicy)

set border policy associated to data parser

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif borderPolicy.isInit() == false

◆ getBorder2dPolicy()

template<typename BaseStripAttributeClassType >
const image::Border2dPolicy& ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getBorder2dPolicy ( ) const

retrieve border policy associated to data parser

Note
default value : valuedBorder2d(0)

◆ getImageYStrip2dWithKernel()

template<typename BaseStripAttributeClassType >
const ValueType& ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getImageYStrip2dWithKernel ( ) const

retrieve input y strip 2d with kernel associated to object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false

◆ getKernelSizeX()

template<typename BaseStripAttributeClassType >
ipUInt64 ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getKernelSizeX ( ) const

retrieve full kernel X size associated to object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false
Returns
getStartingKernelSizeX() + getEndingKernelSizeX() + 1

◆ getKernelSizeY()

template<typename BaseStripAttributeClassType >
ipUInt64 ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getKernelSizeY ( ) const

retrieve full kernel Y size associated to object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false
Returns
getStartingKernelSizeY() + getEndingKernelSizeY() + 1

◆ getStartingKernelSizeX()

template<typename BaseStripAttributeClassType >
ipUInt64 ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getStartingKernelSizeX ( ) const

retrieve starting kernel X size associated to object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false

◆ getEndingKernelSizeX()

template<typename BaseStripAttributeClassType >
ipUInt64 ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getEndingKernelSizeX ( ) const

retrieve ending kernel X size associated to object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false

◆ getStartingKernelSizeY()

template<typename BaseStripAttributeClassType >
ipUInt64 ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getStartingKernelSizeY ( ) const

retrieve starting kernel Y size associated to object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false

◆ getEndingKernelSizeY()

template<typename BaseStripAttributeClassType >
ipUInt64 ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getEndingKernelSizeY ( ) const

retrieve ending kernel Y size associated to object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false

◆ getBufferSize()

template<typename BaseStripAttributeClassType >
ipUInt64 ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getBufferSize ( ) const

retrieve buffer size associated to current operation (number of elements for given buffer type)

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif current operation has not been set

◆ getBuffer()

template<typename BaseStripAttributeClassType >
template<typename T >
const T* ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::getBuffer ( const ipUInt64  knlRowIdx) const
inline

retrieve buffer associated to current operation

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif current operation has not been set
ipsdk::imaproc::IPSDKImageProcessingExceptionif knlRowIdx >= getKernelSizeY()

Member Data Documentation

◆ _pBorder2dPolicy

template<typename BaseStripAttributeClassType >
image::Border2dPolicyPtr ipsdk::imaproc::BaseLineYStrip2dWithKernelParser< BaseStripAttributeClassType >::_pBorder2dPolicy
protected

border policy associated to object

Note
default value : valuedBorder2d(0)

The documentation for this class was generated from the following file: