Class StackReaderOrientationCorrection
Object
org.anchoranalysis.bean.AnchorBean<StackReader>
org.anchoranalysis.image.io.bean.stack.reader.StackReader
org.anchoranalysis.image.io.bean.stack.reader.StackReaderOrientationCorrection
public abstract class StackReaderOrientationCorrection extends StackReader
A
StackReader that supports the correction of orientation as images are read from the
file-system.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description StackReaderOrientationCorrection() -
Method Summary
Modifier and Type Method Description abstract OpenedImageFileopenFile(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, readStackMethods 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 ImageIOExceptionOpens 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.
-