Class BioformatsReader
Reads a stack using the Bioformats
library.
Note that EXIF orientation information is not processed when reading JPEGs or PNGs.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptions that influence how stack is read.openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) Opens a file containing one or more images.openFile(Path filePath, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) Opens a file containing one or more images but does not read an image.voidsetOptions(ReadOptions options) Options that influence how stack is read.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
-
BioformatsReader
Create with particular options.- Parameters:
options- options that influence how stack is read.
-
BioformatsReader
public BioformatsReader()
-
-
Method Details
-
openFile
public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException Description copied from class:StackReaderOpens a file containing one or more images.This method should run as computationally quicky as possible. Image voxels should not yet be read.
- Specified by:
openFilein classStackReader- Parameters:
path- where the file is located.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.
-
openFile
public OpenedImageFile openFile(Path filePath, CalculateOrientationChange orientationCorrection, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException Description copied from class:StackReaderOrientationCorrectionOpens a file containing one or more images but does not read an image.- Specified by:
openFilein classStackReaderOrientationCorrection- Parameters:
filePath- 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.
-
getOptions
Options that influence how stack is read. -
setOptions
Options that influence how stack is read.
-