Package loci.formats

Class MinMaxCalculator

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

public class MinMaxCalculator extends loci.formats.ReaderWrapper
Logic to compute minimum and maximum values for each channel.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected double[][]
    Max values for each channel.
    protected double[][]
    Min values for each channel.
    protected int[]
    Number of planes for which min/max computations have been completed.
    Consumer of channel global minima and maxima
    protected double[][]
    Max values for each plane.
    protected double[][]
    Min values for each plane.

    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 a MinMaxCalculator around a new image reader.
    Constructs a MinMaxCalculator with the given reader.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(boolean fileOnly)
     
    Retrieves a specified channel's global maximum.
    Retrieves a specified channel's global minimum.
    Retrieves the specified channel's maximum based on the images that have been read.
    Retrieves the specified channel's minimum based on the images that have been read.
    Retrieves the current active min-max store for the calculator.
     
    Retrieves the maximum pixel value for the specified plane.
    Retrieves the minimum pixel value for the specified plane.
    protected void
    Ensures internal min/max variables are initialized properly.
    boolean
    Returns true if the values returned by getChannelGlobalMinimum/Maximum can be trusted.
    Converts the given reader into a MinMaxCalculator, wrapping if needed.
    byte[]
    openBytes(int no)
     
    byte[]
    openBytes(int no, byte[] buf)
     
    byte[]
    openBytes(int no, byte[] buf, int x, int y, int w, int h)
     
    byte[]
    openBytes(int no, int x, int y, int w, int h)
     
    void
    Sets the active min-max store for the calculator.
    protected void
    updateMinMax(int no, byte[] buf, int len)
    Updates min/max values based on the given byte array.

    Methods inherited from class loci.formats.ReaderWrapper

    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, 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, openCompressedBytes, openCompressedBytes, openPlane, 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