Skip to content

Extend PyramidalDataset to expose a particular item from its List<SAC> #42

Description

@xulman

The PyramidalDataset extends standard IJ2 Dataset mainly by featuring its public List< SourceAndConverter< T > > asSources(). This is great.

Next to asSources(), there's also accessible getting num* of channels, timepoints, and resolutions, so that a client code understands the content inside this PyramidalDataset. What is missing, is a mapping of a particular combination of timepoint and channel indices to an index in the List<SAC>. There could be a new method

ImgPlus getImgPlus(int timepointIdx, int channelIdx, int resolutionIdx) {
    //lists to the appropriate SAC and fetch the particular resolution from it
}

That way, the same memory should be reused!

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