-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load_series #410
Comments
You may want to take a peek at https://github.com/JuliaIO/MultifileArrays.jl |
I don't think ... it might also be hard to generalize to non-image file formats. |
Thanks for the hint about As for generalization to non-image file formats, one should probably get an Array of the loaded data in such cases. |
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.The text was updated successfully, but these errors were encountered: