MCPcopy Create free account
hub / github.com/biometrics/openbr / flat

Method flat

openbr/openbr_plugin.cpp:63–76  ·  view source on GitHub ↗

File - public methods */ Note that the convention for displaying metadata is as follows: [] for lists in which argument order does not matter (e.g. [FTO=false, Index=0]), () for lists in which argument order matters (e.g. First_Eye(100.0,100.0)).

Source from the content-addressed store, hash-verified

61// [] for lists in which argument order does not matter (e.g. [FTO=false, Index=0]),
62// () for lists in which argument order matters (e.g. First_Eye(100.0,100.0)).
63QString File::flat() const
64{
65 QStringList values;
66 QStringList keys = this->localKeys(); qSort(keys);
67 foreach (const QString &key, keys) {
68 const QVariant value = this->value(key);
69 if (value.isNull()) values.append(key);
70 else values.append(key + "=" + QtUtils::toString(value));
71 }
72
73 QString flat = name;
74 if (!values.isEmpty()) flat += "[" + values.join(", ") + "]";
75 return flat;
76}
77
78QString File::hash() const
79{

Callers 15

operator<<Method · 0.80
_projectFunction · 0.80
trainMethod · 0.80
enrollMethod · 0.80
foreachMethod · 0.80
projectMethod · 0.80
pairwiseCompareMethod · 0.80
deduplicateMethod · 0.80
compareMethod · 0.80
ConvertMethod · 0.80
LikelyMethod · 0.80
enrollMethod · 0.80

Calls 3

isEmptyMethod · 0.80
reserveMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected