Class StackReaderOrientationCorrection

Object
AnchorBean<StackReader>
StackReader
StackReaderOrientationCorrection
Direct Known Subclasses:
BioformatsReader, RotateImageToMatchEXIFOrientation

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

    • StackReaderOrientationCorrection

      public StackReaderOrientationCorrection()
  • 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.