Bio-Formats is a Java library for reading and writing data in life sciences image file formats. It is developed by the Open Microscopy Environment (particularly UW-Madison LOCI and Glencoe Software). Bio-Formats is released under the GNU General Public License (GPL); commercial licenses are available from Glencoe Software.
formats-gpl
component in particular.
setId
method. The file format is autodetected from the contents of the file.
ImageReader r = new ImageReader();
r.setId("/path/to/my.svs");
for (int s=0; s<r.getSeriesCount(); r++) {
r.setSeries(s);
for (int i=0; i<r.getImageCount(); i++) {
byte[] plane = r.openBytes(i);
}
}