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.StackReaderOrientationCorrectiongetReader()Reads the image that is subsequently flattened.org.anchoranalysis.image.io.stack.input.OpenedImageFileopenFile(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)org.anchoranalysis.image.io.stack.input.OpenedImageFileopenFile(Path path, org.anchoranalysis.image.io.stack.CalculateOrientationChange orientationCorrection, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)voidsetReader(org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection reader)Reads the image that is subsequently flattened.
-
Constructor Details
-
RotateImageToMatchEXIFOrientation
public RotateImageToMatchEXIFOrientation() -
RotateImageToMatchEXIFOrientation
public RotateImageToMatchEXIFOrientation(org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection reader)
-
-
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:
openFilein classorg.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:
openFilein classorg.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.
-