IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ipsdk::KernelXY Class Reference

Class encapsulating a 2d kernel spanning along x and y axis. More...

#include <KernelXY.h>

Inheritance diagram for ipsdk::KernelXY:
ipsdk::BaseKernel ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject

Public Types

typedef OffsetXY OffsetType
 offset type associated to object
 
typedef ipReal32 ValueType
 value type associated to object
 
typedef std::map< OffsetType, ValueTypeDataColl
 collection of offsets associated to values
 

Public Member Functions

eKernelType getKernelType () const
 retrieve kernel type associated to object
 
ipUInt32 getNbData () const
 retrieve number of data associated to object
 
bool exists (const OffsetType &offset) const
 check whether a given offset exists into collection
 
void insert (const OffsetType &offset, const ValueType &value)
 insert a value into collection More...
 
void replace (const OffsetType &offset, const ValueType &value)
 replace an existing value into collection More...
 
void remove (const OffsetType &offset)
 remove an existing value from collection More...
 
void multiply (const ValueType value)
 multiply all values by a constant value
 
ValueType getValue (const OffsetType &offset) const
 retrieve value associated to a given offset More...
 
const DataCollgetDataColl () const
 retrieve data collection associated to object
 
const ValueType getCoefSum () const
 retrieve sum of coefficients associated to kernel
 
const ValueType getCoefAbsSum () const
 retrieve sum of absolute values of coefficients associated to kernel
 
void clear ()
 clear of object data
 
Constructors and destructors
 KernelXY ()
 
 ~KernelXY ()
 
const ipUInt32 getSizeX () const
 retrieve kernel size along x and y axis
 
const ipUInt32 getSizeY () const
 retrieve kernel size along x and y axis
 
const ipInt32 getMinX () const
 retrieve kernel minimum offsets along x and y axis
 
const ipInt32 getMinY () const
 retrieve kernel minimum offsets along x and y axis
 
const ipInt32 getMaxX () const
 retrieve kernel maximum offsets along x and y axis
 
const ipInt32 getMaxY () const
 retrieve kernel maximum offsets along x and y axis
 
const ipUInt32 getStartingSizeX () const
 retrieve starting size for kernel along x and y axis (absolute value of lower negative offset or 0)
 
const ipUInt32 getStartingSizeY () const
 retrieve starting size for kernel along x and y axis (absolute value of lower negative offset or 0)
 
const ipUInt32 getEndingSizeX () const
 retrieve ending size for kernel along x and y axis (upper positive offset or 0)
 
const ipUInt32 getEndingSizeY () const
 retrieve ending size for kernel along x and y axis (upper positive offset or 0)
 
- Public Member Functions inherited from ipsdk::BaseKernel
 BaseKernel ()
 
virtual ~BaseKernel ()=0
 
- Public Member Functions inherited from ipsdk::BaseSerializationObject
 BaseSerializationObject ()
 Default constructor.
 
virtual ~BaseSerializationObject ()=0
 destructor
 
- Public Member Functions inherited from ipsdk::BaseDynamicObject
virtual const std::string & getClassName () const
 method allowing to retrieve object class name
 
virtual BaseDynamicObjectcreateNew () const =0
 method allowing to create new instance of current object type
 
virtual DynamicObjectPtr createShared () const =0
 method allowing to create new shared instance of current object type
 
virtual bool hasCopySupport () const =0
 check whether objet has copy support
 
virtual BaseDynamicObjectduplicate () const =0
 method allowing to duplicate current object More...
 
virtual DynamicObjectPtr duplicateShared () const =0
 method allowing shared duplication of current object More...
 
 BaseDynamicObject ()
 
virtual ~BaseDynamicObject ()=0
 

Protected Member Functions

const ValueType computeAbsCoefSum ()
 
- Protected Member Functions inherited from ipsdk::BaseSerializationObject
virtual BoolResult write (BaseOArchive &ar) const
 method allowing to ensure serialization write part for object
 
virtual BoolResult read (BaseIArchive &ar)
 method allowing to ensure serialization read part for object
 
- Protected Member Functions inherited from ipsdk::BaseDynamicObject
virtual void initCtorCopy (const BaseDynamicObject &object)
 
virtual void copy (const BaseDynamicObject &object)
 method allowing to copy data from another object
 

Protected Attributes

DataColl _dataColl
 collection of data associated to kernel
 
ValueType _coefSum
 sum of kernel coefficients and absolute values of kernel coefficients
 
ValueType _absCoefSum
 
ipInt32 _minX
 
ipInt32 _minY
 
ipUInt32 _sizeX
 
ipUInt32 _sizeY
 

Additional Inherited Members

- Static Public Member Functions inherited from ipsdk::BaseSerializationObject
static ipUInt32 getVersion ()
 method allowing to retrieve class version information for serialization
 
- Static Public Member Functions inherited from ipsdk::BaseDynamicObject
static const std::string & getTypeName ()
 method allowing to retrieve name associated to class
 

Detailed Description

Class encapsulating a 2d kernel spanning along x and y axis.

Author
E. Noirfalise
Date
2014/07/08

Member Function Documentation

◆ insert()

void ipsdk::KernelXY::insert ( const OffsetType offset,
const ValueType value 
)

insert a value into collection

Exceptions
ipsdk::IPSDKBaseDataExceptionif exists(offset) == true

◆ replace()

void ipsdk::KernelXY::replace ( const OffsetType offset,
const ValueType value 
)

replace an existing value into collection

Exceptions
ipsdk::IPSDKBaseDataExceptionif exists(offset) == false

◆ remove()

void ipsdk::KernelXY::remove ( const OffsetType offset)

remove an existing value from collection

Exceptions
ipsdk::IPSDKBaseDataExceptionif exists(offset) == false

◆ getValue()

ValueType ipsdk::KernelXY::getValue ( const OffsetType offset) const

retrieve value associated to a given offset

Exceptions
ipsdk::IPSDKBaseDataExceptionif exists(offset) == false

Member Data Documentation

◆ _minX

ipInt32 ipsdk::KernelXY::_minX
protected

minimum offsets along x and y axis

◆ _minY

ipInt32 ipsdk::KernelXY::_minY
protected

minimum offsets along x and y axis

◆ _sizeX

ipUInt32 ipsdk::KernelXY::_sizeX
protected

kernel size along x and y axis

◆ _sizeY

ipUInt32 ipsdk::KernelXY::_sizeY
protected

kernel size along x and y axis


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