Class FlattenAsChannel
Combines all series and frames returned by a reader by converting them into multiple channels in
the same image.
It assumes that the underlying StackReader will only return images with:
- a constant number of channels.
- a constant number of frames.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads the image that is subsequently flattened.openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) Opens a file containing one or more images.voidsetStackReader(StackReader stackReader) Reads the image that is subsequently flattened.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
-
FlattenAsChannel
public FlattenAsChannel()
-
-
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.
-
getStackReader
Reads the image that is subsequently flattened. -
setStackReader
Reads the image that is subsequently flattened.
-