-
Notifications
You must be signed in to change notification settings - Fork 4
Composite file selection use date / time in filename, not image age #61
Description
In main.cpp, searchForImages, the code looks for which data sets to use for creating composite images based on the file creation date being within 6 hours (21,600 seconds) of the current time:
if(entry.path().extension() == ".gcp" && fileCreatedSec < 21600) { //6h
This works well when images are created just after each pass has been created when the file creation time for the .gcp file is accurate. However when processing pass .wav files in a batch mode, i.e. some time after the passes, when several .gcp files will have been created in the last few minutes or so, this will inaccurately match file data sets to be included in the composite data selection.
What I'd suggest is to parse the filenames for the gcp files to get the age of the passes as this directly reflects the pass date time and not when the pass data was processed:
2022-12-1-18-27-38.gcp