Skip to content

load_series #410

@RainerHeintzmann

Description

@RainerHeintzmann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions