![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Base class for cost functions used during optimization process. More...
#include <BaseCostFunction.h>
Public Member Functions | |
| bool | isInit () const |
| check for object initialization | |
| ipUInt32 | getNbParameters () const |
| retrieve number of parameters associated to cost function More... | |
| ipUInt32 | getNbEquations () const |
| retrieve number of equations associated to cost function More... | |
| BoolResult | computeEquations (const Vector ¶meters, Vector &equations) const |
| computation of function equations More... | |
| BoolResult | computeJacobian (const Vector ¶meters, Matrix &jacobian) const |
| computation of function jacobian More... | |
| void | clear () |
| clear of object data | |
Constructors and destructor | |
| BaseCostFunction () | |
| virtual | ~BaseCostFunction ()=0 |
Protected Member Functions | |
| void | initBase (const ipUInt32 nbParameters, const ipUInt32 nbEquations) |
| base class initialization More... | |
| virtual BoolResult | processEquations (const Vector ¶meters, Vector &equations) const =0 |
| computation of function equation in derived class | |
| virtual BoolResult | processJacobian (const Vector ¶meters, Matrix &jacobian) const |
| computation of function jacobian in derived class More... | |
| virtual void | clearDerived () |
| clear of object data in derived class | |
Protected Attributes | |
| ipUInt32 | _nbParameters |
| number of parameters associated to cost function | |
| ipUInt32 | _nbEquations |
| number of equations associated to cost function | |
| bool | _bInit |
| object flag initialization | |
Base class for cost functions used during optimization process.
| ipUInt32 ipsdk::math::BaseCostFunction::getNbParameters | ( | ) | const |
retrieve number of parameters associated to cost function
| ipsdk::math::IPSDKMathException | if isInit() == false |
| ipUInt32 ipsdk::math::BaseCostFunction::getNbEquations | ( | ) | const |
retrieve number of equations associated to cost function
| ipsdk::math::IPSDKMathException | if isInit() == false |
| BoolResult ipsdk::math::BaseCostFunction::computeEquations | ( | const Vector & | parameters, |
| Vector & | equations | ||
| ) | const |
computation of function equations
| ipsdk::math::IPSDKMathException | if parameters.size() != getNbParameters() |
| ipsdk::math::IPSDKMathException | if equations.size() != getNbEquations() |
| BoolResult ipsdk::math::BaseCostFunction::computeJacobian | ( | const Vector & | parameters, |
| Matrix & | jacobian | ||
| ) | const |
computation of function jacobian
| ipsdk::math::IPSDKMathException | if parameters.size() != getNbParameters() |
| ipsdk::math::IPSDKMathException | if jacobian.size2() != getNbEquations() || jacobian.size1() != getNbParameters() |
|
protected |
base class initialization
| ipsdk::math::IPSDKMathException | if nbParameters == 0 |
| ipsdk::math::IPSDKMathException | if nbEquations == 0 |
|
protectedvirtual |
computation of function jacobian in derived class
Reimplemented in ipsdk::geom::Sphere3dCostFunction, and ipsdk::geom::Circle2dCostFunction.
1.8.14