-
Notifications
You must be signed in to change notification settings - Fork 79
Description
How about a load_series (and a save_series) command which is capable of loading (or saving) a series of files, all present in the same folder?
I tried writing something suitable. The filenames included in the loading process must follow a pattern which is specified by in the C-style printf convention (e.g. "myfilename_z%.3d_c%.2d.tif".) Currently only "%d" and "%.Nd" type notations are fully supported. For each such "%d" a dimension is added to the loaded data.
The code analyzes the content of a directory to automatically determine the final array sizes from the filenames and the dimensions of the first loaded image. Ranges and strides are also supported to only load parts of the available data, if needed.
I first intended to include it in MicroscopyTools.jl
, but realized that, since it is based on load from the FileIO.jl toolbox, it might fit better here.
If of interest, should I make a pull request here?
It would add another dependency (Printf.jl
) though.