imglib / imglib2-ij

Translation between ImgLib & ImageJ data structures (both 1.x and 2)
Other
4 stars 8 forks source link

New public method ImageJVirtualStack.getSource returning the underlying RandomAccessibleInterval #36

Closed acardona closed 8 months ago

acardona commented 10 months ago

There are many occasions when one wants to get the underlying RandomAccessibleInterval. Offering a public method to return the private field "source" addresses this well, so one can write, for example:

RandomAccessibleInterval rai = IJ.getImage().getStack().getSource();

Or more simply from a script:

rai = IJ.getImage().getStack().getSource()