public class ImagePlusReader extends Object implements loci.common.StatusReporter
ImagePlus
objects.Modifier and Type | Field and Description |
---|---|
protected List<loci.common.StatusListener> |
listeners |
protected ImportProcess |
process
Import preparation process managing Bio-Formats readers and other state.
|
static String |
PROP_LUT
Special property prefix for storing planar LUTs.
|
static 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(loci.common.StatusListener l) |
static ij.ImagePlus |
createImage(String title,
ij.ImageStack stack,
List<ij.process.LUT> luts)
Creates an
ImagePlus from the given image stack. |
static ij.ImagePlus |
createImage(String title,
List<ij.process.ImageProcessor> procs)
Creates an
ImagePlus from the given image processors. |
static ij.ImageStack |
createStack(List<ij.process.ImageProcessor> procs,
List<String> labels,
List<ij.process.LUT> luts)
Creates an image stack from the given image processors.
|
void |
notifyListeners(loci.common.StatusEvent e) |
ij.ImagePlus[] |
openImagePlus()
Opens one or more
ImagePlus objects
corresponding to the reader's associated options. |
ij.ImagePlus[] |
openThumbImagePlus() |
void |
removeStatusListener(loci.common.StatusListener l) |
public static final String PROP_SERIES
public static final String PROP_LUT
protected ImportProcess process
protected List<loci.common.StatusListener> listeners
public ImagePlusReader() throws IOException
IOException
- if the default options cannot be determined.public ImagePlusReader(ImportProcess process)
public ij.ImagePlus[] openImagePlus() throws FormatException, IOException
ImagePlus
objects
corresponding to the reader's associated options.FormatException
IOException
public ij.ImagePlus[] openThumbImagePlus() throws FormatException, IOException
FormatException
IOException
public void addStatusListener(loci.common.StatusListener l)
addStatusListener
in interface loci.common.StatusReporter
public void removeStatusListener(loci.common.StatusListener l)
removeStatusListener
in interface loci.common.StatusReporter
public void notifyListeners(loci.common.StatusEvent e)
notifyListeners
in interface loci.common.StatusReporter
public static ij.ImagePlus createImage(String title, List<ij.process.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 ij.ImagePlus createImage(String title, ij.ImageStack stack, List<ij.process.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 ij.ImageStack createStack(List<ij.process.ImageProcessor> procs, List<String> labels, List<ij.process.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 © 2015–2021 Fiji. All rights reserved.