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!
The
PyramidalDatasetextends standard IJ2Datasetmainly by featuring itspublic List< SourceAndConverter< T > > asSources(). This is great.Next to
asSources(), there's also accessible gettingnum*of channels, timepoints, and resolutions, so that a client code understands the content inside thisPyramidalDataset. What is missing, is a mapping of a particular combination of timepoint and channel indices to an index in theList<SAC>. There could be a new methodThat way, the same memory should be reused!