public abstract class StackReader extends AnchorBean<StackReader>
Stack
from the file-system.Constructor and Description |
---|
StackReader() |
Modifier and Type | Method and Description |
---|---|
abstract OpenedImageFile |
openFile(Path path,
ExecutionTimeRecorder executionTimeRecorder)
Opens a file containing one or more images.
|
Stack |
readStack(Path path,
OperationContext context)
Opens a file at
path that should contain only a single-stack. |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Stack readStack(Path path, OperationContext context) throws ImageIOException
path
that should contain only a single-stack.
This method should run as computationally quicky as possible. Image voxels should not yet be read.
path
- the path of the image-file to open.context
- context parameters.ImageIOException
- if there is a series of stacks in the file, or if anything else goes
wrong.public abstract OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
This method should run as computationally quicky as possible. Image voxels should not yet be read.
path
- where the file is located.executionTimeRecorder
- records the execution-times of certain operations.ImageIOException
- if the file cannot be read.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.