8 DGM_ASSERT_MSG(featureVectors.channels() ==
getNumFeatures(),
"Number of features in the <featureVectors> (%d) does not correspond to the specified (%d)", featureVectors.channels(),
getNumFeatures());
9 DGM_VECTORWISE2<CTrainLink, &CTrainLink::addFeatureVec>(*
this, featureVectors, gtb, gto);
14 DGM_ASSERT_MSG(featureVectors.size() ==
getNumFeatures(),
"Number of features in the <featureVectors> (%zu) does not correspond to the specified (%d)", featureVectors.size(),
getNumFeatures());
15 DGM_VECTORWISE2<CTrainLink, &CTrainLink::addFeatureVec>(*
this, featureVectors, gtb, gto);
21 if (weight != 1.0) pow(res, weight, res);
void addFeatureVec(const Mat &featureVectors, const Mat >b, const Mat >o)
Adds a block of new feature vectors.
word getNumFeatures(void) const
Returns number of features.
Mat getLinkPotentials(const Mat &featureVector, float weight=1.0f) const
Returns the link potential, based on the feature vector.
virtual Mat calculateLinkPotentials(const Mat &featureVector) const =0
Calculates the link potential, based on the feature vector.