Public Types | |
Public Member Functions | |
std::size_t | getFeatElementDim () const |
Get size/length of a single feature element. | |
std::size_t | getJacSize () const |
Get the column-size of Jacobian matrices. | |
T_MEAS_FEAT_TYPE | getMeasType () const |
Return type of measurement. | |
std::size_t | getNMaxAssoc () const |
Get number of maximum association hypotheses (per feature). | |
std::size_t | getNMaxMeas () const |
Get number of allocated features. | |
std::size_t | getNMeas () const |
Get number of available features. | |
void | resizeAll (T_MEAS_FEAT_TYPE measType, std::size_t nMaxMeas_, std::size_t featElementDim_, std::size_t jacSize_=0, std::size_t nMaxAssoc_=1) |
Resizes all vectors within structure and sets internal variables accordingly. | |
void | setNMeas (std::size_t nMeas_) |
Set number of available features (it must be less or equal than the number of allocated features). | |
T_MEAS_FEAT (std::size_t nMaxMeas_=1, std::size_t featElementDim_=0, std::size_t jacSize_=0, std::size_t nMaxAssoc_=1, double alpha_=0.0, T_MEAS_FEAT_TYPE measType=VECTOR_RES_SINGLE_HYPO) | |
Constructor. | |
Public Attributes | |
double | alpha |
Probability of missing detection (0 associated measurements) for each feature. | |
std::vector< std::vector < double > > | E_mHypo |
E_mHypo = vector of measurement residuals (or innovations) associated to each pair (h,z), with possibly multiple hypotheses NOTE: The actual number of valid residuals is given by the respective entry in nAssociations (0 = missing detection). Dimensions:
| |
std::vector< double > | E_sHypo |
E_sHypo = vector of image residuals associated to each h, with either 0 or 1 association hypothesis. NOTE: The respective entry in nAssociations decides for the validity of this measurement (0 = missing detection). Dimensions:
| |
std::vector< double > | h |
h = vector of expected image features (obtained for example by re-projection from object space). Dimensions:
| |
std::vector< double > | invCov |
invCov = inverse of measurement covariances, for each feature. ATTENTION: invCov encodes a sequence of (nMeas) square matrices, each one of size (featElementDim * featElementDim), into a single vector. Therefore, the total dimension of invCov is (nMeas*featElementDim*featElementDim). | |
std::vector< int > | nAssociations |
nAssociations = vector of integers, giving the actual number of associated hypotheses per feature, between [0,nMaxAssoc]. | |
std::vector< std::vector < double > > | transpJac |
transpJac = transposed Jacobians of h. See the jacSize parameter in resizeAll(). Dimensions:
| |
std::vector< std::vector < double > > | z_mHypo |
z_mHypo = vector of image features associated to each h, with possibly multiple hypotheses NOTE: The actual number of valid associations is given by the respective entry in nAssociations (0 = missing detection). Dimensions:
| |
std::vector< double > | z_sHypo |
z_sHypo = vector of image features associated to each h, with either 0 or 1 association hypothesis. NOTE: The respective entry in nAssociations decides for the validity of this measurement (0 = missing detection). Dimensions:
|
Possible measurement data types.
opentl::core::cvdata::T_MEAS_FEAT::T_MEAS_FEAT | ( | std::size_t | nMaxMeas_ = 1 , |
|
std::size_t | featElementDim_ = 0 , |
|||
std::size_t | jacSize_ = 0 , |
|||
std::size_t | nMaxAssoc_ = 1 , |
|||
double | alpha_ = 0.0 , |
|||
T_MEAS_FEAT_TYPE | measType = VECTOR_RES_SINGLE_HYPO | |||
) | [inline] |
Constructor.
nMaxMeas_ | Maximum number of features (in order to pre-allocate memory). The actual number of stored measurements is given by nMeas. | |
nMaxAssoc_ | Maximum number of association hypotheses (in case of multiple hypotheses, in order to pre-allocate the vectors). | |
featElementDim_ | Length of one feature element. | |
jacSize_ | Column-size of the Jacobian matrix (usually the state, or pose dimension). The row-size is featElementDim. | |
alpha_ | Probability of missing detection (default = 0). | |
measType | Type of measurement: scalar or vector residual, with single or multiple association hypotheses. |
std::size_t opentl::core::cvdata::T_MEAS_FEAT::getFeatElementDim | ( | ) | const [inline] |
Get size/length of a single feature element.
std::size_t opentl::core::cvdata::T_MEAS_FEAT::getJacSize | ( | ) | const [inline] |
Get the column-size of Jacobian matrices.
T_MEAS_FEAT_TYPE opentl::core::cvdata::T_MEAS_FEAT::getMeasType | ( | ) | const [inline] |
Return type of measurement.
std::size_t opentl::core::cvdata::T_MEAS_FEAT::getNMaxAssoc | ( | ) | const [inline] |
Get number of maximum association hypotheses (per feature).
std::size_t opentl::core::cvdata::T_MEAS_FEAT::getNMaxMeas | ( | ) | const [inline] |
Get number of allocated features.
std::size_t opentl::core::cvdata::T_MEAS_FEAT::getNMeas | ( | ) | const [inline] |
Get number of available features.
void opentl::core::cvdata::T_MEAS_FEAT::resizeAll | ( | T_MEAS_FEAT_TYPE | measType, | |
std::size_t | nMaxMeas_, | |||
std::size_t | featElementDim_, | |||
std::size_t | jacSize_ = 0 , |
|||
std::size_t | nMaxAssoc_ = 1 | |||
) | [inline] |
Resizes all vectors within structure and sets internal variables accordingly.
measType | Type of measurement: scalar or vector residual, with single or multiple association hypotheses. | |
nMaxMeas_ | Maximum number of features (in order to pre-allocate memory). The actual number of stored measurements is given by nMeas. | |
featElementDim_ | Length of one feature element (in case of vector data). | |
jacSize_ | Column-size of the Jacobian matrix (usually the state, or pose dimension). The row-size is featElementDim. | |
nMaxAssoc_ | Maximum number of association hypotheses (in case of multiple hypotheses, in order to pre-allocate the vectors). |
void opentl::core::cvdata::T_MEAS_FEAT::setNMeas | ( | std::size_t | nMeas_ | ) | [inline] |
Set number of available features (it must be less or equal than the number of allocated features).
Probability of missing detection (0 associated measurements) for each feature.
std::vector<std::vector<double> > opentl::core::cvdata::T_MEAS_FEAT::E_mHypo |
E_mHypo = vector of measurement residuals (or innovations) associated to each pair (h,z), with possibly multiple hypotheses NOTE: The actual number of valid residuals is given by the respective entry in nAssociations (0 = missing detection). Dimensions:
std::vector<double> opentl::core::cvdata::T_MEAS_FEAT::E_sHypo |
E_sHypo = vector of image residuals associated to each h, with either 0 or 1 association hypothesis. NOTE: The respective entry in nAssociations decides for the validity of this measurement (0 = missing detection). Dimensions:
std::vector<double> opentl::core::cvdata::T_MEAS_FEAT::h |
h = vector of expected image features (obtained for example by re-projection from object space). Dimensions:
std::vector<double> opentl::core::cvdata::T_MEAS_FEAT::invCov |
invCov = inverse of measurement covariances, for each feature. ATTENTION: invCov encodes a sequence of (nMeas) square matrices, each one of size (featElementDim * featElementDim), into a single vector. Therefore, the total dimension of invCov is (nMeas*featElementDim*featElementDim).
std::vector<int> opentl::core::cvdata::T_MEAS_FEAT::nAssociations |
nAssociations = vector of integers, giving the actual number of associated hypotheses per feature, between [0,nMaxAssoc].
std::vector<std::vector<double> > opentl::core::cvdata::T_MEAS_FEAT::transpJac |
transpJac = transposed Jacobians of h. See the jacSize parameter in resizeAll(). Dimensions:
Example: if the state dimension is 6, and you have 100 features, each one with a descriptor of dimension 3, J is (300 x 6) and transpJac will be (6 x 300).
std::vector<std::vector<double> > opentl::core::cvdata::T_MEAS_FEAT::z_mHypo |
z_mHypo = vector of image features associated to each h, with possibly multiple hypotheses NOTE: The actual number of valid associations is given by the respective entry in nAssociations (0 = missing detection). Dimensions:
std::vector<double> opentl::core::cvdata::T_MEAS_FEAT::z_sHypo |
z_sHypo = vector of image features associated to each h, with either 0 or 1 association hypothesis. NOTE: The respective entry in nAssociations decides for the validity of this measurement (0 = missing detection). Dimensions: