Ejemplo n.º 1
0
VariantValue &VariantValue::operator=(const VariantValue &Other) {
  if (this == &Other) return *this;
  reset();
  switch (Other.Type) {
  case VT_Unsigned:
    setUnsigned(Other.getUnsigned());
    break;
  case VT_String:
    setString(Other.getString());
    break;
  case VT_Matcher:
    setMatcher(Other.getMatcher());
    break;
  case VT_Nothing:
    Type = VT_Nothing;
    break;
  }
  return *this;
}
/* Discriptor Matcher setter used for featurbased
 * setting by Name
 **/
void AlignmentMatrixCalc::setMatcherSimple(QString matcherName)
{
    setMatcher(cv::DescriptorMatcher::create(matcherName.toStdString()));
}
Ejemplo n.º 3
0
VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) {
  setMatcher(Matcher);
}