Class BaseZeissReader

java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.in.BaseZeissReader
All Implemented Interfaces:
Closeable, AutoCloseable, loci.formats.ICompressedTileReader, loci.formats.IFormatHandler, loci.formats.IFormatReader, loci.formats.IMetadataConfigurable, loci.formats.IPyramidHandler
Direct Known Subclasses:
ZeissTIFFReader, ZeissZVIReader

public abstract class BaseZeissReader extends loci.formats.FormatReader
BaseZeissReader contains common functionality required by readers for Zeiss AxioVision formats.
Author:
Melissa Linkert melissa at glencoesoftware.com
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    class 
    Content of a single tag from a Tags block.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected ome.xml.model.primitives.Timestamp
     
    protected int
    Number of bytes per pixel.
    protected int[]
     
    protected Set<Integer>
     
    protected final Map<Integer,String>
     
    protected int
     
    protected int
     
    protected int[][]
     
    protected final Map<Integer,Double>
     
    protected final Map<Integer,Double>
     
    protected final Map<Integer,ome.units.quantity.Length>
     
    protected Map<Integer,String>
     
    protected final Map<Integer,ome.units.quantity.Length>
     
    protected String
     
    protected String[]
     
    protected boolean
     
    protected boolean
     
    protected int
     
    ArrayList<loci.formats.in.BaseZeissReader.Layer>
     
    protected int
     
    protected int
     
    protected int
     
    protected int[]
     
    protected Double
     
    protected Double
     
    protected Double
     
    protected int
     
    protected int
     
    protected int
     
    protected List<String>
     
    protected int
     
    protected final Map<Integer,ome.units.quantity.Length>
     
    protected final Map<Integer,ome.units.quantity.Length>
     
    protected List<String>
     
    protected Set<Integer>
     
    protected final Map<Integer,Integer>
     
    protected int
     
    protected Set<Integer>
     
    protected Map<Integer,String>
     
    protected Set<Integer>
     

    Fields inherited from class loci.formats.FormatReader

    core, coreIndex, datasetDescription, domains, fillColor, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSION

    Fields inherited from class loci.formats.FormatHandler

    COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes

    Fields inherited from interface loci.formats.IFormatReader

    CAN_GROUP, CANNOT_GROUP, MUST_GROUP
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseZeissReader(String name, String suffix)
    Constructs a new ZeissZVI reader.
    BaseZeissReader(String name, String[] suffixes)
    Constructs a new ZeissZVI reader.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(boolean fileOnly)
     
    protected void
     
    protected void
    fillMetadataPass1(loci.formats.meta.MetadataStore store)
    Read and store basic dimensions in model
    protected void
    fillMetadataPass2(loci.formats.meta.MetadataStore store)
    Read and store basic dimensions in model
    protected void
    fillMetadataPass3(loci.formats.meta.MetadataStore store)
    Read and store basic dimensions in model
    protected void
    fillMetadataPass4(loci.formats.meta.MetadataStore store)
    Read and store basic dimensions in model
    protected void
    fillMetadataPass5(loci.formats.meta.MetadataStore store)
    Read and store basic dimensions in model
    protected void
    fillMetadataPass6(loci.formats.meta.MetadataStore store)
    Read and store basic dimensions in model
    protected void
    fillMetadataPass7(loci.formats.meta.MetadataStore store)
    Store basic dimensions in model
    short[][]
     
    byte[][]
     
    int
     
    protected void
     
    protected void
     
    protected static int
    parseColor(byte r, byte g, byte b)
     
    protected static int
    parseInt(String number)
    Parse an Integer from a String.
    protected static int
    parseInt(String number, int defaultnum)
    Parse an Integer from a String.
    protected void
    storeROIs(loci.formats.meta.MetadataStore store)
    Store basic dimensions in model

    Methods inherited from class loci.formats.FormatReader

    addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMetaList, addMeta, addMetaList, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMetaList, close, coreIndexToSeries, fileGroupOption, flattenHashtables, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCoreIndex, getCoreMetadataList, getCorrection, getCurrentCore, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, getDomains, getEffectiveSizeC, getExperimentType, getFilamentType, getFillColor, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getGlobalMetadata, getIlluminationType, getImageCount, getImmersion, getIndex, getIndex, getLaserMedium, getLaserType, getMarker, getMedium, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getMicrobeamManipulationType, getMicroscopeType, getModuloC, getModuloT, getModuloZ, getNamingConvention, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getRotationTransform, getSeries, getSeriesCount, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getThumbSizeX, getThumbSizeY, getTileColumns, getTileRows, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, initFile, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, readPlane, reopenFile, seriesToCoreIndex, setCoreIndex, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, updateMetadataLists

    Methods inherited from class loci.formats.FormatHandler

    checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, setMetadataOptions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface loci.formats.ICompressedTileReader

    getTileBoundingBox, getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytes

    Methods inherited from interface loci.formats.IFormatHandler

    getFormat, getNativeDataType, getSuffixes

    Methods inherited from interface loci.formats.IMetadataConfigurable

    getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
  • Field Details

    • bpp

      protected int bpp
      Number of bytes per pixel.
    • imageFiles

      protected String[] imageFiles
    • offsets

      protected int[] offsets
    • coordinates

      protected int[][] coordinates
    • acquisitionDate

      protected transient ome.xml.model.primitives.Timestamp acquisitionDate
    • timestamps

      protected Map<Integer,String> timestamps
    • exposureTime

      protected Map<Integer,String> exposureTime
    • cIndex

      protected int cIndex
    • isJPEG

      protected boolean isJPEG
    • isZlib

      protected boolean isZlib
    • realWidth

      protected int realWidth
    • realHeight

      protected int realHeight
    • tagsToParse

      protected List<String> tagsToParse
    • nextEmWave

      protected int nextEmWave
    • nextExWave

      protected int nextExWave
    • nextChName

      protected int nextChName
    • stageX

      protected final Map<Integer,ome.units.quantity.Length> stageX
    • stageY

      protected final Map<Integer,ome.units.quantity.Length> stageY
    • timepoint

      protected int timepoint
    • channelColors

      protected int[] channelColors
    • lastPlane

      protected int lastPlane
    • tiles

      protected final Map<Integer,Integer> tiles
    • detectorGain

      protected final Map<Integer,Double> detectorGain
    • detectorOffset

      protected final Map<Integer,Double> detectorOffset
    • emWavelength

      protected final Map<Integer,ome.units.quantity.Length> emWavelength
    • exWavelength

      protected final Map<Integer,ome.units.quantity.Length> exWavelength
    • channelName

      protected final Map<Integer,String> channelName
    • physicalSizeX

      protected Double physicalSizeX
    • physicalSizeY

      protected Double physicalSizeY
    • physicalSizeZ

      protected Double physicalSizeZ
    • rowCount

      protected int rowCount
    • colCount

      protected int colCount
    • rawCount

      protected int rawCount
    • imageDescription

      protected String imageDescription
    • channelIndices

      protected Set<Integer> channelIndices
    • zIndices

      protected Set<Integer> zIndices
    • timepointIndices

      protected Set<Integer> timepointIndices
    • tileIndices

      protected Set<Integer> tileIndices
    • roiIDs

      protected List<String> roiIDs
    • layers

      public ArrayList<loci.formats.in.BaseZeissReader.Layer> layers
  • Constructor Details

    • BaseZeissReader

      public BaseZeissReader(String name, String suffix)
      Constructs a new ZeissZVI reader.
    • BaseZeissReader

      public BaseZeissReader(String name, String[] suffixes)
      Constructs a new ZeissZVI reader.
  • Method Details

    • initFileMain

      protected void initFileMain(String id) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • initVars

      protected void initVars(String id) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • countImages

      protected void countImages()
    • fillMetadataPass1

      protected void fillMetadataPass1(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Read and store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • fillMetadataPass2

      protected void fillMetadataPass2(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Read and store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • fillMetadataPass3

      protected void fillMetadataPass3(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Read and store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • fillMetadataPass4

      protected void fillMetadataPass4(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Read and store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • fillMetadataPass5

      protected void fillMetadataPass5(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Read and store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • fillMetadataPass6

      protected void fillMetadataPass6(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Read and store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • fillMetadataPass7

      protected void fillMetadataPass7(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • getOptimalTileHeight

      public int getOptimalTileHeight()
      Specified by:
      getOptimalTileHeight in interface loci.formats.IFormatReader
      Overrides:
      getOptimalTileHeight in class loci.formats.FormatReader
    • storeROIs

      protected void storeROIs(loci.formats.meta.MetadataStore store) throws loci.formats.FormatException, IOException
      Store basic dimensions in model
      Parameters:
      store -
      Throws:
      loci.formats.FormatException
      IOException
    • get8BitLookupTable

      public byte[][] get8BitLookupTable() throws loci.formats.FormatException, IOException
      Specified by:
      get8BitLookupTable in interface loci.formats.IFormatReader
      Overrides:
      get8BitLookupTable in class loci.formats.FormatReader
      Throws:
      loci.formats.FormatException
      IOException
    • get16BitLookupTable

      public short[][] get16BitLookupTable() throws loci.formats.FormatException, IOException
      Specified by:
      get16BitLookupTable in interface loci.formats.IFormatReader
      Overrides:
      get16BitLookupTable in class loci.formats.FormatReader
      Throws:
      loci.formats.FormatException
      IOException
    • close

      public void close(boolean fileOnly) throws IOException
      Specified by:
      close in interface loci.formats.IFormatReader
      Overrides:
      close in class loci.formats.FormatReader
      Throws:
      IOException
    • parseInt

      protected static int parseInt(String number)
      Parse an Integer from a String.
      Parameters:
      number - the number to parse
      Returns:
      an Integer. 0 if number was null.
    • parseInt

      protected static int parseInt(String number, int defaultnum)
      Parse an Integer from a String.
      Parameters:
      number - the number to parse
      defaultnum - the number to return if number is null or empty
      Returns:
      an Integer. 0 if number was null.
    • parseColor

      protected static int parseColor(byte r, byte g, byte b)