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

Method csvOutput

openbr/plugins/output/csv.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28class csvOutput : public MatrixOutput
29{
30 Q_OBJECT
31
32 ~csvOutput()
33 {
34 if (file.isNull() || targetFiles.isEmpty() || queryFiles.isEmpty()) return;
35 QStringList lines;
36 lines.append("File," + targetFiles.names().join(","));
37 for (int i=0; i<queryFiles.size(); i++) {
38 QStringList words;
39 for (int j=0; j<targetFiles.size(); j++)
40 words.append(toString(i,j)); // The toString idiom is used to output match scores - see MatrixOutput
41 lines.append(queryFiles[i].name+","+words.join(","));
42 }
43 QtUtils::writeFile(file, lines);
44 }
45};
46
47BR_REGISTER(Output, csvOutput)

Callers

nothing calls this directly

Calls 7

writeFileFunction · 0.85
isEmptyMethod · 0.80
namesMethod · 0.80
toStringFunction · 0.50
isNullMethod · 0.45
appendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected