Class GroupFiles
An
InputManagerWithStackReader that can unify separate images in separate files to form a
single Stack.
A time-series of Stacks may also be formed.
The criteria on how to unify is defined by a pattern in the file path (via regular expressions).
A regular expression is applied on the set of input file paths, to identify one or more groups:
- One group is the image key (something that uniquely identifies each image).
- One group is the slice-identifier (identifies the z slice, must be positive integer.
- One group is the channel-identifier (identifies the channel, must be positive integer).
For each image key, an image is loaded using the slice and channel-identifiers.
Integer numbers are simply loaded in ascending numerical order. So gaps are allowed, and starting numbers are irrelevant.
It is more powerful than MultiFileReader, which expects only one image per directory.
This class allows multiple images per directory and only performs a single glob for filenames.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionImposes a condition on each parsed-file-path-bag which must be-fulfilled if a file is to be included.getNamer()inputs(InputManagerParameters parameters) Creates a list of inputs given particular parameters.booleanvoidsetCheckParsedFilePathBag(CheckParsedFilePathBag checkParsedFilePathBag) Imposes a condition on each parsed-file-path-bag which must be-fulfilled if a file is to be included.voidsetFileInput(NamedFiles fileInput) voidsetImgChannelMapCreator(ChannelMapCreator imgChannelMapCreator) voidvoidsetPathParser(FilePathParser pathParser) voidsetRequireAllFilesMatch(boolean requireAllFilesMatch) Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.InputManagerWithStackReader
getStackReader, setStackReaderMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
GroupFiles
public GroupFiles()
-
-
Method Details
-
inputs
public InputsWithDirectory<NamedChannelsInput> inputs(InputManagerParameters parameters) throws InputReadFailedException Description copied from class:InputManagerCreates a list of inputs given particular parameters.- Specified by:
inputsin classInputManager<NamedChannelsInput>- Parameters:
parameters- the parameters.- Returns:
- the list of inputs, together with any associated parent directory.
- Throws:
InputReadFailedException- if inputs cannot be successfully read from the file-system.
-
getFileInput
-
setFileInput
-
getPathParser
-
setPathParser
-
isRequireAllFilesMatch
public boolean isRequireAllFilesMatch() -
setRequireAllFilesMatch
public void setRequireAllFilesMatch(boolean requireAllFilesMatch) -
getImgChannelMapCreator
-
setImgChannelMapCreator
-
getNamer
-
setNamer
-
getCheckParsedFilePathBag
Imposes a condition on each parsed-file-path-bag which must be-fulfilled if a file is to be included. -
setCheckParsedFilePathBag
Imposes a condition on each parsed-file-path-bag which must be-fulfilled if a file is to be included.
-