Search in sources :

Example 1 with DataBrowser

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);
}
Also used : DataBrowser(loci.plugins.util.DataBrowser) IFormatReader(loci.formats.IFormatReader) Modulo(loci.formats.Modulo)

Aggregations

IFormatReader (loci.formats.IFormatReader)1 Modulo (loci.formats.Modulo)1 DataBrowser (loci.plugins.util.DataBrowser)1