IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
ipsdk::math::transform::Transform2dFactory Class Reference
Inheritance diagram for ipsdk::math::transform::Transform2dFactory:

Public Member Functions

 ~Transform2dFactory ()
 Destructor.
 

Static Public Member Functions

template<typename T >
static bool isRegistred ()
 method allowing to check whether a geometric transformation is registred
 
static bool isRegistred (const eGeometricTransform2dType &geometricTransform2dType)
 method allowing to check whether a geometric transformation is registred
 
static ipUInt32 getNbParams (const eGeometricTransform2dType &geometricTransform2dType)
 method allowing to retrieve number of parameters associated to a given geometric transformation More...
 
static GeometricTransform2dPtr createTransform (const eGeometricTransform2dType &geometricTransform2dType)
 method allowing to retrieve number of parameters associated to a given geometric transformation More...
 
static GeometricTransform2dPtr createTransform (const eGeometricTransform2dType &geometricTransform2dType, const Vector &params)
 method allowing to retrieve number of parameters associated to a given geometric transformation More...
 

Protected Types

typedef GeometricTransform2dPtr(* CreatorFun) ()
 function type allowing to create a geometric transformation
 
typedef std::pair< ipUInt32, CreatorFunTransformInfo
 
typedef std::map< eGeometricTransform2dType, TransformInfoTransformMap
 

Protected Member Functions

 Transform2dFactory ()
 Constructors.
 
void registerTransform (const eGeometricTransform2dType &geometricTransform2dType, const ipUInt32 nbParams, const CreatorFun &pCreationFun)
 method allowing to register a new geometric transformation More...
 

Static Protected Member Functions

static Transform2dFactorygetInstance ()
 method allowing to retrieve factory singletion instance
 

Protected Attributes

TransformMap _transformMap
 map allowing to store transform informations
 

Friends

template<typename T >
struct TransformRegistrator2d
 

Member Typedef Documentation

◆ TransformInfo

structure allowing to encapsulate information about geometric transformation

◆ TransformMap

map allowing to associated a geometric transform enumerate identifier to its information

Member Function Documentation

◆ getNbParams()

static ipUInt32 ipsdk::math::transform::Transform2dFactory::getNbParams ( const eGeometricTransform2dType geometricTransform2dType)
static

method allowing to retrieve number of parameters associated to a given geometric transformation

Exceptions
ipsdk::math::IPSDKMathExceptionif isRegistred(geometricTransform2dType) == false

◆ createTransform() [1/2]

static GeometricTransform2dPtr ipsdk::math::transform::Transform2dFactory::createTransform ( const eGeometricTransform2dType geometricTransform2dType)
static

method allowing to retrieve number of parameters associated to a given geometric transformation

Exceptions
ipsdk::math::IPSDKMathExceptionif isRegistred(geometricTransform2dType) == false

◆ createTransform() [2/2]

static GeometricTransform2dPtr ipsdk::math::transform::Transform2dFactory::createTransform ( const eGeometricTransform2dType geometricTransform2dType,
const Vector params 
)
static

method allowing to retrieve number of parameters associated to a given geometric transformation

Exceptions
ipsdk::math::IPSDKMathExceptionif isRegistred(geometricTransform2dType) == false
ipsdk::math::IPSDKMathExceptionif params.size() != getNbParams(geometricTransform2dType)

◆ registerTransform()

void ipsdk::math::transform::Transform2dFactory::registerTransform ( const eGeometricTransform2dType geometricTransform2dType,
const ipUInt32  nbParams,
const CreatorFun pCreationFun 
)
protected

method allowing to register a new geometric transformation

Exceptions
ipsdk::math::IPSDKMathExceptionif isRegistred(geometricTransform2dType) == false

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