Commit 10f62ec17bbc2c1b1dd3db1c098610910d6e06a8
1 parent
ccee88d8
Fix retrieveOrEnroll (the target memGallery must now be specified explicitly)
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/core/core.cpp
| @@ -261,7 +261,7 @@ struct AlgorithmCore | @@ -261,7 +261,7 @@ struct AlgorithmCore | ||
| 261 | if (!galleryFiles.isEmpty()) return; | 261 | if (!galleryFiles.isEmpty()) return; |
| 262 | 262 | ||
| 263 | // Enroll it | 263 | // Enroll it |
| 264 | - enroll(file); | 264 | + enroll(file, getMemoryGallery(file)); |
| 265 | gallery.reset(Gallery::make(getMemoryGallery(file))); | 265 | gallery.reset(Gallery::make(getMemoryGallery(file))); |
| 266 | galleryFiles = gallery->files(); | 266 | galleryFiles = gallery->files(); |
| 267 | } | 267 | } |