Class StackReaderOrientationCorrection
- Direct Known Subclasses:
BioformatsReader
,RotateImageToMatchEXIFOrientation
A
StackReader
that supports the correction of orientation as images are read from the
file-system.- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract OpenedImageFile
openFile
(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) Opens a file containing one or more images but does not read an image.Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader
openFile, readStack
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
StackReaderOrientationCorrection
public StackReaderOrientationCorrection()
-
-
Method Details
-
openFile
public abstract OpenedImageFile openFile(Path path, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException Opens a file containing one or more images but does not read an image.- Parameters:
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.- Returns:
- an interface to the opened file that should be closed when no longer in use.
- Throws:
ImageIOException
- if the file cannot be read.
-