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 |
---|---|
private byte[][] |
convertTo8Bit(short[][] shortTable) |
private ij.process.LUT |
createColorModel() |
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.
|
ij.process.ImageProcessor[] |
openProcessors(int no)
Creates an ImageJ image processor object
for the image plane at the given position.
|
ij.process.ImageProcessor[] |
openProcessors(int no,
int x,
int y,
int w,
int h)
Returns an array of ImageProcessors that represent the given slice.
|
ij.process.ImageProcessor[] |
openThumbProcessors(int no) |
close, close, coreIndexToSeries, duplicate, fileGroupOption, get16BitLookupTable, get8BitLookupTable, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getBitsPerPixel, getCoreIndex, getCoreMetadataList, getCurrentFile, getDatasetStructureDescription, getDimensionOrder, getDomains, getEffectiveSizeC, getFormat, getGlobalMetadata, getImageCount, getIndex, getIndex, 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, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThisType, isThumbnailSeries, openBytes, openBytes, openBytes, openBytes, openThumbBytes, reopenFile, seriesToCoreIndex, setCoreIndex, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataOptions, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, unwrap, unwrap, unwrap
public ImageProcessorReader()
public ImageProcessorReader(IFormatReader r)
public static ImageProcessorReader makeImageProcessorReader(IFormatReader r)
public ij.process.ImageProcessor[] openProcessors(int no) throws FormatException, IOException
no
- Position of image plane.FormatException
IOException
public ij.process.ImageProcessor[] openThumbProcessors(int no) throws FormatException, IOException
FormatException
IOException
public ij.process.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
private ij.process.LUT createColorModel() throws FormatException, IOException
FormatException
IOException
private byte[][] convertTo8Bit(short[][] shortTable)
Copyright © 2017 Open Microscopy Environment