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())); }
VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) { setMatcher(Matcher); }