public class RotateImageToMatchEXIFOrientation extends StackReaderOrientationCorrection
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.
Constructor and Description |
---|
RotateImageToMatchEXIFOrientation() |
RotateImageToMatchEXIFOrientation(StackReaderOrientationCorrection reader) |
Modifier and Type | Method and Description |
---|---|
StackReaderOrientationCorrection |
getReader()
Reads the image that is subsequently flattened.
|
OpenedImageFile |
openFile(Path path,
CalculateOrientationChange orientationCorrection,
ExecutionTimeRecorder executionTimeRecorder)
Opens a file containing one or more images but does not read an image.
|
OpenedImageFile |
openFile(Path path,
ExecutionTimeRecorder executionTimeRecorder)
Opens a file containing one or more images.
|
void |
setReader(StackReaderOrientationCorrection reader)
Reads the image that is subsequently flattened.
|
readStack
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public RotateImageToMatchEXIFOrientation()
public RotateImageToMatchEXIFOrientation(StackReaderOrientationCorrection reader)
public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
StackReader
This method should run as computationally quicky as possible. Image voxels should not yet be read.
openFile
in class StackReader
path
- where the file is located.executionTimeRecorder
- records the execution-times of certain operations.ImageIOException
- if the file cannot be read.public OpenedImageFile openFile(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
StackReaderOrientationCorrection
openFile
in class StackReaderOrientationCorrection
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.ImageIOException
- if the file cannot be read.public StackReaderOrientationCorrection getReader()
public void setReader(StackReaderOrientationCorrection reader)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.