use of loci.plugins.util.DataBrowser in project bioformats by openmicroscopy.
the class DisplayHandler method displayDataBrowser.
public void displayDataBrowser(ImagePlus imp) {
IFormatReader r = process.getReader();
int[] subC;
String[] subCTypes;
Modulo moduloC = r.getModuloC();
if (moduloC.length() > 1) {
subC = new int[] { r.getSizeC() / moduloC.length(), moduloC.length() };
subCTypes = new String[] { moduloC.parentType, moduloC.type };
} else {
subC = new int[] { r.getSizeC() };
subCTypes = new String[] { FormatTools.CHANNEL };
}
new DataBrowser(imp, null, subCTypes, subC, xmlWindow);
}
Aggregations