Search in sources :

Example 1 with DatasetIOService

use of io.scif.services.DatasetIOService in project vcell by virtualcell.

the class MainController method getDatasetFromFile.

private Dataset getDatasetFromFile(File file) {
    DatasetIOService datasetIOService = context.getService(DatasetIOService.class);
    Dataset dataset = null;
    try {
        dataset = datasetIOService.open(file.getAbsolutePath());
    } catch (IOException e) {
        e.printStackTrace();
    }
    return dataset;
}
Also used : DatasetIOService(io.scif.services.DatasetIOService) Dataset(net.imagej.Dataset) IOException(java.io.IOException)

Aggregations

DatasetIOService (io.scif.services.DatasetIOService)1 IOException (java.io.IOException)1 Dataset (net.imagej.Dataset)1