IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ipsdk::imaproc::PromoteUnaryImageInitializer< InputAttributeType, OutputAttributeType > Class Template Reference

Class allowing to initialize an output image from an other image deducing output image buffer type from input image buffer type and a promote unary operation type. More...

#include <PromoteUnaryImageInitializer.h>

Inheritance diagram for ipsdk::imaproc::PromoteUnaryImageInitializer< InputAttributeType, OutputAttributeType >:
ipsdk::imaproc::BaseImageUnaryInitializer< InputAttributeType, OutputAttributeType > ipsdk::imaproc::BaseImageInitializer ipsdk::imaproc::BaseImageProcessingOutputInitializer ipsdk::processor::BaseOutputInitializer

Public Member Functions

eImageInitializerType getImageInitializerType () const
 retrieve image initializer type
 
void init (const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< const InputAttributeType > &pInputAttribute, const ePromoteUnaryType &promoteUnaryType)
 initialize object More...
 
const ePromoteUnaryTypegetPromoteUnaryType () const
 retrieve custom promote type used for output attribute initialization More...
 
Constructors and destructors
 PromoteUnaryImageInitializer ()
 
 ~PromoteUnaryImageInitializer ()
 
- Public Member Functions inherited from ipsdk::imaproc::BaseImageUnaryInitializer< InputAttributeType, OutputAttributeType >
const InputAttributeType & getInputImageAttribute () const
 retrieve input image attribute associated to object More...
 
 BaseImageUnaryInitializer ()
 
virtual ~BaseImageUnaryInitializer ()=0
 
- Public Member Functions inherited from ipsdk::imaproc::BaseImageInitializer
eImageProcessingInitializerType getImageProcessingInitializerType () const
 retrieve image processing initializer type
 
 BaseImageInitializer ()
 
virtual ~BaseImageInitializer ()=0
 
- Public Member Functions inherited from ipsdk::imaproc::BaseImageProcessingOutputInitializer
processor::eOutputInitializerType getOutputInitializerType () const
 retrieve initializer type
 
 BaseImageProcessingOutputInitializer ()
 
 ~BaseImageProcessingOutputInitializer ()
 
- Public Member Functions inherited from ipsdk::processor::BaseOutputInitializer
bool isInit () const
 retrieve object initialization flag
 
const BaseAttributegetOutputAttribute () const
 retrieve output attribute to be initialized More...
 
BoolResult initOutputAttribute ()
 initialize ouput attribute More...
 
std::string getInitializerFormalString () const
 retrieve string expliciting initializer content More...
 
std::string getInitializerEvaluatedString () const
 retrieve initializer evaluation string More...
 
 BaseOutputInitializer ()
 
virtual ~BaseOutputInitializer ()=0
 

Static Public Attributes

static const eImageInitializerType::domain g_imageInitializerType = eImageInitializerType::eIIT_PromoteUnary
 image output initializer type
 
- Static Public Attributes inherited from ipsdk::imaproc::BaseImageInitializer
static const eImageProcessingInitializerType::domain g_imageProcessingInitializerType = eImageProcessingInitializerType::eIPIT_Image
 image processing output initializer type
 
- Static Public Attributes inherited from ipsdk::imaproc::BaseImageProcessingOutputInitializer
static const processor::eOutputInitializerType::domain g_outputInitializerType = processor::eOutputInitializerType::eOIT_ImageProcessing
 output initializer type
 

Protected Member Functions

BoolResult initAttribute ()
 initialize ouput attribute More...
 
std::string createInitializerFormalString () const
 retrieve string expliciting initializer content
 
std::string createInitializerEvaluatedString () const
 retrieve initializer evaluation string
 
- Protected Member Functions inherited from ipsdk::imaproc::BaseImageUnaryInitializer< InputAttributeType, OutputAttributeType >
void initBase (const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< const InputAttributeType > &pInputAttribute)
 base class initialization method More...
 
- Protected Member Functions inherited from ipsdk::processor::BaseOutputInitializer
void initBase (const AttributeWeakPtr &pOutputAttribute)
 base class initialization method More...
 
BaseAttributegetOutputAttribute ()
 retrieve output attribute to be initialized More...
 

Protected Attributes

ePromoteUnaryType _promoteUnaryType
 promote type used for output attribute initialization
 

Detailed Description

template<typename InputAttributeType, typename OutputAttributeType>
class ipsdk::imaproc::PromoteUnaryImageInitializer< InputAttributeType, OutputAttributeType >

Class allowing to initialize an output image from an other image deducing output image buffer type from input image buffer type and a promote unary operation type.

Author
E. Noirfalise
Date
2014/06/23

Member Function Documentation

◆ init()

template<typename InputAttributeType , typename OutputAttributeType >
void ipsdk::imaproc::PromoteUnaryImageInitializer< InputAttributeType, OutputAttributeType >::init ( const boost::weak_ptr< OutputAttributeType > &  pOutputAttribute,
const boost::weak_ptr< const InputAttributeType > &  pInputAttribute,
const ePromoteUnaryType promoteUnaryType 
)

initialize object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif pOutputAttribute.get() == 0
ipsdk::processor::IPSDKBaseProcessingExceptionif pOutputAttribute->getIOStatus() != eAttributeIO::eIOS_Output
ipsdk::processor::IPSDKBaseProcessingExceptionif pInputAttribute.get() == 0

◆ getPromoteUnaryType()

template<typename InputAttributeType , typename OutputAttributeType >
const ePromoteUnaryType& ipsdk::imaproc::PromoteUnaryImageInitializer< InputAttributeType, OutputAttributeType >::getPromoteUnaryType ( ) const

retrieve custom promote type used for output attribute initialization

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

◆ initAttribute()

template<typename InputAttributeType , typename OutputAttributeType >
BoolResult ipsdk::imaproc::PromoteUnaryImageInitializer< InputAttributeType, OutputAttributeType >::initAttribute ( )
protectedvirtual

initialize ouput attribute

Returns
false in case of failure

Implements ipsdk::processor::BaseOutputInitializer.


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