public class ImagePlusReader extends java.lang.Object implements StatusReporter
Modifier and Type | Field and Description |
---|---|
protected java.util.List<StatusListener> |
listeners |
protected ImportProcess |
process
Import preparation process managing Bio-Formats readers and other state.
|
static java.lang.String |
PROP_LUT
Special property prefix for storing planar LUTs.
|
static java.lang.String |
PROP_SERIES
Special property for storing series number associated with the image.
|
Constructor and Description |
---|
ImagePlusReader()
Constructs an ImagePlusReader with the default options.
|
ImagePlusReader(ImportProcess process)
Constructs an ImagePlusReader with the
given complete import preparation process.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(StatusListener l) |
static ImagePlus |
createImage(java.lang.String title,
ImageStack stack,
java.util.List<LUT> luts)
Creates an
ImagePlus from the given image stack. |
static ImagePlus |
createImage(java.lang.String title,
java.util.List<ImageProcessor> procs)
Creates an
ImagePlus from the given image processors. |
static ImageStack |
createStack(java.util.List<ImageProcessor> procs,
java.util.List<java.lang.String> labels,
java.util.List<LUT> luts)
Creates an image stack from the given image processors.
|
void |
notifyListeners(StatusEvent e) |
ImagePlus[] |
openImagePlus()
Opens one or more
ImagePlus objects
corresponding to the reader's associated options. |
ImagePlus[] |
openThumbImagePlus() |
void |
removeStatusListener(StatusListener l) |
public static final java.lang.String PROP_SERIES
public static final java.lang.String PROP_LUT
protected ImportProcess process
protected java.util.List<StatusListener> listeners
public ImagePlusReader() throws java.io.IOException
java.io.IOException
- if the default options cannot be determined.public ImagePlusReader(ImportProcess process)
public ImagePlus[] openImagePlus() throws FormatException, java.io.IOException
ImagePlus
objects
corresponding to the reader's associated options.FormatException
java.io.IOException
public ImagePlus[] openThumbImagePlus() throws FormatException, java.io.IOException
FormatException
java.io.IOException
public void addStatusListener(StatusListener l)
addStatusListener
in interface StatusReporter
public void removeStatusListener(StatusListener l)
removeStatusListener
in interface StatusReporter
public void notifyListeners(StatusEvent e)
notifyListeners
in interface StatusReporter
public static ImagePlus createImage(java.lang.String title, java.util.List<ImageProcessor> procs)
ImagePlus
from the given image processors.title
- The title for the image.procs
- List of image processors to compile into an image.public static ImagePlus createImage(java.lang.String title, ImageStack stack, java.util.List<LUT> luts)
ImagePlus
from the given image stack.title
- The title for the image.stack
- The image stack containing the image planes.luts
- Optional list of plane-specific LUTs
to store as image properties, for later use.public static ImageStack createStack(java.util.List<ImageProcessor> procs, java.util.List<java.lang.String> labels, java.util.List<LUT> luts)
procs
- List of image processors to compile into a stack.labels
- Optional list of labels, one per plane.luts
- Optional list for storing plane-specific LUTs, for later use.Copyright © 2014 Open Microscopy Environment