public class BatchOpener extends Object
The types of file that should be coped with properly at the moment are listed below:
Tested file types:
Untested file types (please send me example files!):
Modifier and Type | Class and Description |
---|---|
static class |
BatchOpener.ChannelsAndLoader
A helper class to return the array of ImagePlus as well as an
indication of the file loader that was used.
|
static class |
BatchOpener.ImageLoaderException |
static class |
BatchOpener.NoSuchChannelException |
Constructor and Description |
---|
BatchOpener() |
Modifier and Type | Method and Description |
---|---|
static ij.ImagePlus[] |
open(String path)
Returns an array of ImagePlus objects corresponding to all of the
channels in the image file.
|
static ij.ImagePlus |
openFirstChannel(String path)
Returns an ImagePlus corresponding to the first (and possibly only)
channel in the image file, without calling show() on the ImagePlus
object.
|
static ij.ImagePlus |
openParticularChannel(String path,
int i)
Returns an ImagePlus corresponding to the channel with the specified
index in the image file.
|
static BatchOpener.ChannelsAndLoader |
openToChannelsAndLoader(String path)
Returns an object with (a) references to the array of ImagePlus
objects corresponding to all of the channels in the image
file and (b) a string indicating which loader was used.
|
static ij.ImagePlus[] |
splitChannelsToArray(ij.ImagePlus imp,
boolean closeAfter) |
public static ij.ImagePlus openFirstChannel(String path)
path
- the path of the image file to openpublic static ij.ImagePlus openParticularChannel(String path, int i) throws BatchOpener.NoSuchChannelException
path
- the path of the image file to openi
- the (zero-indexed) index of the channel to returnBatchOpener.NoSuchChannelException
public static ij.ImagePlus[] open(String path)
path
- the path of the image file to openpublic static BatchOpener.ChannelsAndLoader openToChannelsAndLoader(String path) throws BatchOpener.ImageLoaderException
path
- the path of the image file to openBatchOpener.ImageLoaderException
public static ij.ImagePlus[] splitChannelsToArray(ij.ImagePlus imp, boolean closeAfter)
Copyright © 2015–2021 Fiji. All rights reserved.