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

Method project

openbr/core/core.cpp:243–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241 }
242
243 void project(File input, File output)
244 {
245 qDebug("Projecting %s%s", qPrintable(input.flat()),
246 output.isNull() ? "" : qPrintable(" to " + output.flat()));
247
248 QScopedPointer<Gallery> inputGallery(Gallery::make(input));
249 QScopedPointer<Gallery> outputGallery(Gallery::make(output));
250
251 bool done;
252 do {
253 TemplateList templates = inputGallery->readBlock(&done);
254 if (!templates.empty())
255 templates >> *transform;
256 if (!templates.empty())
257 outputGallery->writeBlock(templates);
258 } while (!done);
259 }
260
261 void enroll(TemplateList &data)
262 {

Callers 3

ProjectMethod · 0.45
projectAndWriteFunction · 0.45
refreshImageMethod · 0.45

Calls 5

makeFunction · 0.85
flatMethod · 0.80
isNullMethod · 0.45
readBlockMethod · 0.45
writeBlockMethod · 0.45

Tested by

no test coverage detected