public class ImageProcessorReader extends ReaderWrapper
ImageProcessor objects.
For a higher-level reader that returns ImagePlus objects,
see ImagePlusReader instead.readerCAN_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 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.
|
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, 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, unwrappublic ImageProcessorReader()
public ImageProcessorReader(IFormatReader r)
public static ImageProcessorReader makeImageProcessorReader(IFormatReader r)
public ImageProcessor[] openProcessors(int no) throws FormatException, IOException
no - Position of image plane.FormatExceptionIOExceptionpublic ImageProcessor[] openThumbProcessors(int no) throws FormatException, IOException
FormatExceptionIOExceptionpublic ImageProcessor[] openProcessors(int no, int x, int y, int w, int h) throws FormatException, IOException
no - Position of image plane.FormatExceptionIOExceptionpublic Class<?> getNativeDataType()
IFormatHandlerIFormatReader.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 IFormatHandlergetNativeDataType in class ReaderWrapperpublic Object openPlane(int no, int x, int y, int w, int h) throws FormatException, IOException
IFormatReaderBufferedImage. The openPlane method exists to
maintain generality and efficiency while avoiding pollution of the API
with AWT-specific logic.openPlane in interface IFormatReaderopenPlane in class ReaderWrapperFormatExceptionIOExceptionFormatReader,
BufferedImageReaderprivate LUT createColorModel() throws FormatException, IOException
FormatExceptionIOExceptionprivate byte[][] convertTo8Bit(short[][] shortTable)
Copyright © 2015 Open Microscopy Environment