With mollex we have extracted the snail shells from the photos of the "Museum für Naturkunde Berlin" and generated new pictures. SnailSnap is now an extension, so that you can take a selfie of yourself and create a mosaic of snail shells. By tapping on the snail shell you can see meta information about the snails.
Remove unnecessary use of pointers: Remove raw pointers, either by using references and values or by converting them to smart pointers
Implement asynchronous loading of images (using std::async). Note that this creates async tasks for every image to be loaded. I've tested this on Linux where it works fine (vm usage spikes to >30GB, but rss stays below the usual ~2GB), however other platforms (macOS/Windows) might not like the considerable number of threads required.
Don't actually save mollusc images in Mollusc. Instead, keep a mollusc image cache in MolluscImages, using the image name as a key.
NB: Please don't merge this until this PR was tested on every targeted platform, i.e. Windows and macOS (Linux has already been tested).
This supersedes PR #87.
std::async
). Note that this creates async tasks for every image to be loaded. I've tested this on Linux where it works fine (vm usage spikes to >30GB, but rss stays below the usual ~2GB), however other platforms (macOS/Windows) might not like the considerable number of threads required.Mollusc
. Instead, keep a mollusc image cache inMolluscImages
, using the image name as a key.NB: Please don't merge this until this PR was tested on every targeted platform, i.e. Windows and macOS (Linux has already been tested).
Closes #82 and #39.