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

Method finalize

openbr/core/plot.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159
160 bool finalize(bool show = false)
161 {
162 file.write("dev.off()\n");
163 if (suffix != "pdf") file.write(qPrintable(QString("unlink(\"%1.%2\")").arg(basename, suffix)));
164 file.close();
165
166 bool success = QtUtils::runRScript(file.fileName());
167 if (success && show) QtUtils::showFile(basename+"."+suffix);
168 return success;
169 }
170};
171
172// Does not work if dataset folder starts with a number

Callers 5

PlotFunction · 0.45
PlotDetectionFunction · 0.45
PlotLandmarkingFunction · 0.45
PlotMetadataFunction · 0.45
PlotKNNFunction · 0.45

Calls 4

runRScriptFunction · 0.85
showFileFunction · 0.85
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected