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
ConstructorsConstructorDescriptionRotateImageToMatchEXIFOrientation(StackReaderOrientationCorrection reader) Creates a newRotateImageToMatchEXIFOrientationinstance. -
Method Summary
Modifier and TypeMethodDescriptionStackReaderOrientationCorrectionReads the image that is subsequently flattened.OpenedImageFileOpenedImageFileopenFile(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) voidsetReader(StackReaderOrientationCorrection reader) Reads the image that is subsequently flattened.Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader
readStackMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
RotateImageToMatchEXIFOrientation
public RotateImageToMatchEXIFOrientation() -
RotateImageToMatchEXIFOrientation
public RotateImageToMatchEXIFOrientation(StackReaderOrientationCorrection reader) Creates a newRotateImageToMatchEXIFOrientationinstance.- Parameters:
reader- Reads the image that is subsequently flattened.
-
-
Method Details
-
openFile
public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException - Specified by:
openFilein classStackReader- Throws:
ImageIOException
-
openFile
public OpenedImageFile openFile(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException - Specified by:
openFilein classStackReaderOrientationCorrection- 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.
-