Package loci.plugins.in
Class ImagePlusReader
java.lang.Object
loci.plugins.in.ImagePlusReader
- All Implemented Interfaces:
loci.common.StatusReporter
A high-level reader for
ImagePlus objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<loci.common.StatusListener>protected ImportProcessImport preparation process managing Bio-Formats readers and other state.static final StringSpecial property prefix for storing planar LUTs.static final StringSpecial property for storing series number associated with the image. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an ImagePlusReader with the default options.ImagePlusReader(ImportProcess process) Constructs an ImagePlusReader with the given complete import preparation process. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatusListener(loci.common.StatusListener l) static ImagePluscreateImage(String title, ImageStack stack, List<LUT> luts) Creates anImagePlusfrom the given image stack.static ImagePluscreateImage(String title, List<ImageProcessor> procs) Creates anImagePlusfrom the given image processors.static ImageStackcreateStack(List<ImageProcessor> procs, List<String> labels, List<LUT> luts) Creates an image stack from the given image processors.static int[]getSubC(loci.formats.Modulo moduloC, int sizeC) static String[]getSubCTypes(loci.formats.Modulo moduloC) voidnotifyListeners(loci.common.StatusEvent e) Opens one or moreImagePlusobjects corresponding to the reader's associated options.voidremoveStatusListener(loci.common.StatusListener l)
-
Field Details
-
PROP_SERIES
Special property for storing series number associated with the image.- See Also:
-
PROP_LUT
Special property prefix for storing planar LUTs.- See Also:
-
process
Import preparation process managing Bio-Formats readers and other state. -
listeners
-
-
Constructor Details
-
ImagePlusReader
Constructs an ImagePlusReader with the default options.- Throws:
IOException- if the default options cannot be determined.
-
ImagePlusReader
Constructs an ImagePlusReader with the given complete import preparation process.
-
-
Method Details
-
openImagePlus
Opens one or moreImagePlusobjects corresponding to the reader's associated options.- Throws:
loci.formats.FormatExceptionIOException
-
openThumbImagePlus
- Throws:
loci.formats.FormatExceptionIOException
-
addStatusListener
public void addStatusListener(loci.common.StatusListener l) - Specified by:
addStatusListenerin interfaceloci.common.StatusReporter
-
removeStatusListener
public void removeStatusListener(loci.common.StatusListener l) - Specified by:
removeStatusListenerin interfaceloci.common.StatusReporter
-
notifyListeners
public void notifyListeners(loci.common.StatusEvent e) - Specified by:
notifyListenersin interfaceloci.common.StatusReporter
-
createImage
Creates anImagePlusfrom the given image processors.- Parameters:
title- The title for the image.procs- List of image processors to compile into an image.
-
createImage
Creates anImagePlusfrom the given image stack.- Parameters:
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.
-
createStack
public static ImageStack createStack(List<ImageProcessor> procs, List<String> labels, List<LUT> luts) Creates an image stack from the given image processors.- Parameters:
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.
-
getSubC
public static int[] getSubC(loci.formats.Modulo moduloC, int sizeC) -
getSubCTypes
-