Class RotateImageToMatchEXIFOrientation

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

public class RotateImageToMatchEXIFOrientation
extends org.anchoranalysis.image.io.bean.stack.reader.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()  
    RotateImageToMatchEXIFOrientation​(org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection reader)  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection getReader()
    Reads the image that is subsequently flattened.
    org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile​(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)  
    org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile​(Path path, org.anchoranalysis.image.io.stack.CalculateOrientationChange orientationCorrection, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)  
    void setReader​(org.anchoranalysis.image.io.bean.stack.reader.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

  • Method Details

    • openFile

      public org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile​(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      openFile in class org.anchoranalysis.image.io.bean.stack.reader.StackReader
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • openFile

      public org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile​(Path path, org.anchoranalysis.image.io.stack.CalculateOrientationChange orientationCorrection, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      openFile in class org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • getReader

      public org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection getReader()
      Reads the image that is subsequently flattened.
    • setReader

      public void setReader​(org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection reader)
      Reads the image that is subsequently flattened.