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();
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()