Class ImageProcessorReader

java.lang.Object
loci.formats.ReaderWrapper
loci.plugins.util.ImageProcessorReader
All Implemented Interfaces:
Closeable, AutoCloseable, loci.formats.ICompressedTileReader, loci.formats.IFormatHandler, loci.formats.IFormatReader, loci.formats.IMetadataConfigurable, loci.formats.IPyramidHandler

public class ImageProcessorReader extends loci.formats.ReaderWrapper
A low-level reader for ImageProcessor objects. For a higher-level reader that returns ImagePlus objects, see ImagePlusReader instead.
  • Field Summary

    Fields inherited from class loci.formats.ReaderWrapper

    reader

    Fields inherited from interface loci.formats.IFormatReader

    CAN_GROUP, CANNOT_GROUP, MUST_GROUP
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs an ImageProcessorReader around a new image reader.
    ImageProcessorReader(loci.formats.IFormatReader r)
    Constructs an ImageProcessorReader with the given reader.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    makeImageProcessorReader(loci.formats.IFormatReader r)
    Converts the given reader into a ImageProcessorReader, wrapping if needed.
    openPlane(int no, int x, int y, int w, int h)
     
    Creates an ImageJ image processor object for the image plane at the given position.
    openProcessors(int no, int x, int y, int w, int h)
    Returns an array of ImageProcessors that represent the given slice.
     

    Methods inherited from class loci.formats.ReaderWrapper

    close, close, coreIndexToSeries, duplicate, fileGroupOption, get16BitLookupTable, get8BitLookupTable, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getBitsPerPixel, getCoreIndex, getCoreMetadataList, getCurrentFile, getDatasetStructureDescription, getDimensionOrder, getDomains, getEffectiveSizeC, getFillColor, 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, getTileBoundingBox, getTileCodec, getTileCodecOptions, getTileColumns, getTileRows, 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, openCompressedBytes, openCompressedBytes, openThumbBytes, reopenFile, seriesToCoreIndex, setCoreIndex, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataOptions, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, unwrap, unwrap, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ImageProcessorReader

      public ImageProcessorReader()
      Constructs an ImageProcessorReader around a new image reader.
    • ImageProcessorReader

      public ImageProcessorReader(loci.formats.IFormatReader r)
      Constructs an ImageProcessorReader with the given reader.
  • Method Details

    • makeImageProcessorReader

      public static ImageProcessorReader makeImageProcessorReader(loci.formats.IFormatReader r)
      Converts the given reader into a ImageProcessorReader, wrapping if needed.
    • openProcessors

      public ImageProcessor[] openProcessors(int no) throws loci.formats.FormatException, IOException
      Creates an ImageJ image processor object for the image plane at the given position.
      Parameters:
      no - Position of image plane.
      Throws:
      loci.formats.FormatException
      IOException
    • openThumbProcessors

      public ImageProcessor[] openThumbProcessors(int no) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • openProcessors

      public ImageProcessor[] openProcessors(int no, int x, int y, int w, int h) throws loci.formats.FormatException, IOException
      Returns an array of ImageProcessors that represent the given slice. There is one ImageProcessor per RGB channel; i.e., length of returned array == getRGBChannelCount().
      Parameters:
      no - Position of image plane.
      Throws:
      loci.formats.FormatException
      IOException
    • getNativeDataType

      public Class<?> getNativeDataType()
      Specified by:
      getNativeDataType in interface loci.formats.IFormatHandler
      Overrides:
      getNativeDataType in class loci.formats.ReaderWrapper
    • openPlane

      public Object openPlane(int no, int x, int y, int w, int h) throws loci.formats.FormatException, IOException
      Specified by:
      openPlane in interface loci.formats.IFormatReader
      Overrides:
      openPlane in class loci.formats.ReaderWrapper
      Throws:
      loci.formats.FormatException
      IOException