Class OpenedMultiFile

Object
org.anchoranalysis.plugin.io.multifile.OpenedMultiFile
All Implemented Interfaces:
AutoCloseable, org.anchoranalysis.image.io.stack.input.OpenedImageFile

public class OpenedMultiFile
extends Object
implements org.anchoranalysis.image.io.stack.input.OpenedImageFile
A OpenedImageFile where the image is formed from more than one file on the file-system.

It ignores multiple series.

Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    OpenedMultiFile​(org.anchoranalysis.image.io.bean.stack.reader.StackReader stackReader, ParsedFilePathBag fileBag, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)  
  • Method Summary

    Modifier and Type Method Description
    int bitDepth​(org.anchoranalysis.core.log.Logger logger)  
    Optional<List<String>> channelNames​(org.anchoranalysis.core.log.Logger logger)  
    void close()  
    org.anchoranalysis.image.core.dimensions.Dimensions dimensionsForSeries​(int seriesIndex, org.anchoranalysis.core.log.Logger logger)  
    boolean isRGB​(org.anchoranalysis.core.log.Logger logger)  
    int numberChannels​(org.anchoranalysis.core.log.Logger logger)  
    int numberFrames​(org.anchoranalysis.core.log.Logger logger)  
    int numberSeries()  
    org.anchoranalysis.image.io.stack.time.TimeSeries open​(int seriesIndex, org.anchoranalysis.core.log.Logger logger)  
    Optional<org.anchoranalysis.image.core.stack.ImagePyramidMetadata> pyramid()  
    org.anchoranalysis.image.io.stack.input.ImageTimestampsAttributes timestamps()  

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.anchoranalysis.image.io.stack.input.OpenedImageFile

    metadata, open, openCheckType
  • Constructor Details

    • OpenedMultiFile

      public OpenedMultiFile​(org.anchoranalysis.image.io.bean.stack.reader.StackReader stackReader, ParsedFilePathBag fileBag, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)
  • Method Details

    • numberSeries

      public int numberSeries()
      Specified by:
      numberSeries in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
    • open

      public org.anchoranalysis.image.io.stack.time.TimeSeries open​(int seriesIndex, org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      open in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • channelNames

      public Optional<List<String>> channelNames​(org.anchoranalysis.core.log.Logger logger)
      Specified by:
      channelNames in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
    • numberChannels

      public int numberChannels​(org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      numberChannels in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • bitDepth

      public int bitDepth​(org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      bitDepth in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • isRGB

      public boolean isRGB​(org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      isRGB in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • numberFrames

      public int numberFrames​(org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      numberFrames in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • timestamps

      public org.anchoranalysis.image.io.stack.input.ImageTimestampsAttributes timestamps() throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      timestamps in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • close

      public void close() throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • dimensionsForSeries

      public org.anchoranalysis.image.core.dimensions.Dimensions dimensionsForSeries​(int seriesIndex, org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      dimensionsForSeries in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • pyramid

      public Optional<org.anchoranalysis.image.core.stack.ImagePyramidMetadata> pyramid() throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      pyramid in interface org.anchoranalysis.image.io.stack.input.OpenedImageFile
      Throws:
      org.anchoranalysis.image.io.ImageIOException