Class StackReaderOrientationCorrection

Object
org.anchoranalysis.bean.AnchorBean<StackReader>
org.anchoranalysis.image.io.bean.stack.reader.StackReader
org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection

public abstract class StackReaderOrientationCorrection
extends StackReader
A StackReader that supports the correction of orientation as images are read from the file-system.
Author:
Owen Feehan
  • Constructor Details

  • Method Details

    • openFile

      public abstract OpenedImageFile openFile​(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
      Opens a file containing one or more images but does not read an image.
      Parameters:
      path - where the file is located.
      orientationCorrection - calculates any needed correction applied to the orientation as the image is loaded.
      executionTimeRecorder - records the execution-times of certain operations.
      Returns:
      an interface to the opened file that should be closed when no longer in use.
      Throws:
      ImageIOException - if the file cannot be read.