public class ImageProcessorReader extends ReaderWrapper
ImageProcessor
objects.
For a higher-level reader that returns ImagePlus
objects,
see ImagePlusReader
instead.
reader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP
Constructor and Description |
---|
ImageProcessorReader()
Constructs an ImageProcessorReader around a new image reader.
|
ImageProcessorReader(IFormatReader r)
Constructs an ImageProcessorReader with the given reader.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
getNativeDataType()
Returns the native data type of image planes for this reader, as returned
by
IFormatReader.openPlane(int, int, int, int, int) or IFormatWriter.savePlane(int, java.lang.Object) . |
static ImageProcessorReader |
makeImageProcessorReader(IFormatReader r)
Converts the given reader into a ImageProcessorReader, wrapping if needed.
|
Object |
openPlane(int no,
int x,
int y,
int w,
int h)
Obtains the specified image plane (or sub-image thereof) in the reader's
native data structure.
|
ImageProcessor[] |
openProcessors(int no)
Creates an ImageJ image processor object
for the image plane at the given position.
|
ImageProcessor[] |
openProcessors(int no,
int x,
int y,
int w,
int h)
Returns an array of ImageProcessors that represent the given slice.
|
ImageProcessor[] |
openThumbProcessors(int no) |
close, close, coreIndexToSeries, duplicate, fileGroupOption, get16BitLookupTable, get8BitLookupTable, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getBitsPerPixel, getChannelDimLengths, getChannelDimTypes, getCoreIndex, getCoreMetadata, getCoreMetadataList, getCurrentFile, getDatasetStructureDescription, getDimensionOrder, getDomains, getEffectiveSizeC, getFormat, getGlobalMetadata, getImageCount, getIndex, getMetadata, getMetadataOptions, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getModuloC, getModuloT, getModuloZ, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPossibleDomains, getReader, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getSeries, getSeriesCount, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getSuffixes, getSupportedMetadataLevels, getThumbSizeX, getThumbSizeY, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataCollected, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThisType, isThumbnailSeries, openBytes, openBytes, openBytes, openBytes, openThumbBytes, seriesToCoreIndex, setCoreIndex, setFlattenedResolutions, setGroupFiles, setId, setMetadataCollected, setMetadataFiltered, setMetadataOptions, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, unwrap, unwrap, unwrap
public ImageProcessorReader()
public ImageProcessorReader(IFormatReader r)
public static ImageProcessorReader makeImageProcessorReader(IFormatReader r)
public ImageProcessor[] openProcessors(int no) throws FormatException, IOException
no
- Position of image plane.FormatException
IOException
public ImageProcessor[] openThumbProcessors(int no) throws FormatException, IOException
FormatException
IOException
public ImageProcessor[] openProcessors(int no, int x, int y, int w, int h) throws FormatException, IOException
no
- Position of image plane.FormatException
IOException
public Class<?> getNativeDataType()
IFormatHandler
IFormatReader.openPlane(int, int, int, int, int)
or IFormatWriter.savePlane(int, java.lang.Object)
.
For most readers this type will be a byte array; however, some readers
call external APIs that work with other types such as
BufferedImage
.getNativeDataType
in interface IFormatHandler
getNativeDataType
in class ReaderWrapper
public Object openPlane(int no, int x, int y, int w, int h) throws FormatException, IOException
IFormatReader
BufferedImage
. The openPlane method exists to
maintain generality and efficiency while avoiding pollution of the API
with AWT-specific logic.openPlane
in interface IFormatReader
openPlane
in class ReaderWrapper
FormatException
IOException
FormatReader
,
BufferedImageReader
Copyright © 2014 Open Microscopy Environment