![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Class allowing to estimate a 2d homography transformationWe compute a homography transformation such as :
. More...
#include <HomographyTransform2dEstimator.h>
Public Types | |
| enum | eEstimParams { eEP_Hxx, eEP_Hxy, eEP_Hxw, eEP_Hyx, eEP_Hyy, eEP_Hyw, eEP_Hwx, eEP_Hwy, eEP_Hww } |
| enum | eDataType { eDT_X1, eDT_Y1, eDT_X2, eDT_Y2 } |
Public Member Functions | |
| BoolResult | computeEstimation (const math::DataSet &dataSet, math::Matrix3d &matH) |
| method allowing to estimate homography matrix from a given data set More... | |
| BoolResult | computeResiduals (const math::DataSet &dataSet, const math::Matrix3d &matH, math::ResidualsSet &residualsSet) const |
| method allowing to compute estimation residuals from a given data set and some estimated parameters More... | |
Constructors and destructor | |
| HomographyTransform2dEstimator () | |
| ~HomographyTransform2dEstimator () | |
Public Member Functions inherited from ipsdk::math::BaseEstimator | |
| bool | isInit () const |
| check for object initialization | |
| ipUInt32 | getNbMinRequestedData () const |
| retrieve minimum data set size to ensure an estimation More... | |
| ipUInt32 | getNbEstimParams () const |
| retrieve number of estimated parameters More... | |
| ipUInt32 | getDataSize () const |
| unitary data size into data set collection More... | |
| BoolResult | computeEstimation (const DataSet &dataSet, ParameterType &estimParams) |
| method allowing to estimate parameters from a given data set More... | |
| BoolResult | computeResiduals (const DataSet &dataSet, const ParameterType &estimParams, ResidualsSet &residualsSet) const |
| method allowing to compute estimation residuals from a given data set and some estimated parameters More... | |
| BaseEstimator () | |
| virtual | ~BaseEstimator ()=0 |
Static Public Attributes | |
| static const ipUInt32 | g_parameterSize = eEstimParams::size |
| size of estimated parameters | |
| static const ipUInt32 | g_dataSize = eDataType::size |
| size of data into data set | |
Protected Member Functions | |
| BoolResult | processEstimation (const math::DataSet &dataSet, math::ParameterType &estimParams) |
| method allowing to compute estimation into derived classes More... | |
| BoolResult | processResiduals (const math::DataSet &dataSet, const math::ParameterType &estimParams, math::ResidualsSet &residualsSet) const |
| method allowing to compute residuals into derived classes More... | |
Protected Member Functions inherited from ipsdk::math::BaseEstimator | |
| void | initBase (const ipUInt32 nbMinRequestedData, const ipUInt32 nbEstimParams, const ipUInt32 dataSize) |
| base class initialization More... | |
| BoolResult | checkData (const DataSet &dataSet, const ParameterType &estimParams) const |
| method allowing to check input data properties associated to estimation More... | |
| virtual BoolResult | processEstimation (const DataSet &dataSet, ParameterType &estimParams)=0 |
| method allowing to compute estimation into derived classes More... | |
| virtual BoolResult | processResiduals (const DataSet &dataSet, const ParameterType &estimParams, ResidualsSet &residualsSet) const =0 |
| method allowing to compute residuals into derived classes More... | |
Class allowing to estimate a 2d homography transformation
We compute a homography transformation such as :
.
and where a pair of input points
and
are linked by following estimation formula :
description of estimated parameters (8 degrees of freedom)
| BoolResult ipsdk::geom::HomographyTransform2dEstimator::computeEstimation | ( | const math::DataSet & | dataSet, |
| math::Matrix3d & | matH | ||
| ) |
method allowing to estimate homography matrix from a given data set
| ipsdk::math::IPSDKMathException | if isInit() == false |
| BoolResult ipsdk::geom::HomographyTransform2dEstimator::computeResiduals | ( | const math::DataSet & | dataSet, |
| const math::Matrix3d & | matH, | ||
| math::ResidualsSet & | residualsSet | ||
| ) | const |
method allowing to compute estimation residuals from a given data set and some estimated parameters
| ipsdk::math::IPSDKMathException | if isInit() == false |
| ipsdk::math::IPSDKMathException | if dataSet.size() != residualsSet.size() |
|
protected |
method allowing to compute estimation into derived classes
|
protected |
method allowing to compute residuals into derived classes
1.8.14