Class RotateImageToMatchEXIFOrientation

Object
AnchorBean<StackReader>
StackReader
StackReaderOrientationCorrection
RotateImageToMatchEXIFOrientation

public class RotateImageToMatchEXIFOrientation extends StackReaderOrientationCorrection
Rotates an image to match any EXIF orientation information, if it exists.

The EXIF orientation is read separately from the underlying StackReader.

If the metadata cannot be successfully read, no rotation occurs, and currently no error message is logged.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    RotateImageToMatchEXIFOrientation(StackReaderOrientationCorrection reader)
    Creates a new RotateImageToMatchEXIFOrientation instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    StackReaderOrientationCorrection
    Reads the image that is subsequently flattened.
    OpenedImageFile
    openFile(Path path, ExecutionTimeRecorder executionTimeRecorder)
     
    OpenedImageFile
    openFile(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder)
     
    void
    setReader(StackReaderOrientationCorrection reader)
    Reads the image that is subsequently flattened.

    Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader

    readStack

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RotateImageToMatchEXIFOrientation

      public RotateImageToMatchEXIFOrientation()
    • RotateImageToMatchEXIFOrientation

      public RotateImageToMatchEXIFOrientation(StackReaderOrientationCorrection reader)
      Creates a new RotateImageToMatchEXIFOrientation instance.
      Parameters:
      reader - Reads the image that is subsequently flattened.
  • Method Details

    • openFile

      public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
      Specified by:
      openFile in class StackReader
      Throws:
      ImageIOException
    • openFile

      public OpenedImageFile openFile(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
      Specified by:
      openFile in class StackReaderOrientationCorrection
      Throws:
      ImageIOException
    • getReader

      public StackReaderOrientationCorrection getReader()
      Reads the image that is subsequently flattened.
    • setReader

      public void setReader(StackReaderOrientationCorrection reader)
      Reads the image that is subsequently flattened.