dear all,
In a plugin under development (multiCAFE) using Java/Eclipse, we process stacks of relatively small images (typically 1280 x 720 pixels) to analyze time-lapse data. Loading a stack of 320 images using a “Loader” function takes about 30 s on a reasonably sized computer running under Windows 10 ( AMD Rhyzen 5 with 6 core, 3.6 GHz, 32 Gb, 500 Gb SSD).
Is there a way to make it quicker (besides by calling it within a separate thread)?
Thank you in advance for your help,
Frederic
PS code snippet:
protected Sequence loadSequenceOfImagesFromList(List myListOfFilesNames, boolean testFilenameDecoratedwithLR)
{
seq = null;
long startTime = System.nanoTime();
if (seqFileImporter == null)
{
seqFileImporter = Loader.getSequenceFileImporter(myListOfFilesNames.get(0), true);
long endTime = System.nanoTime();
System.out.println("*** create file importer - duration: "+((endTime-startTime)/ 1000000000f) + " s");
startTime = endTime;
}
seq = Loader.loadSequence(seqFileImporter, myListOfFilesNames, false);
long endTime = System.nanoTime();
System.out.println("loading sequence done - duration: "+((endTime-startTime)/ 1000000000f) + " s");
return seq;
}