Class GroupFiles
Object
AnchorBean<InputManager<NamedChannelsInput>>
InputManager<NamedChannelsInput>
InputManagerWithStackReader<NamedChannelsInput>
GroupFiles
public class GroupFiles
extends InputManagerWithStackReader<NamedChannelsInput>
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.ChannelMapCreatorFileNamergetNamer()InputsWithDirectory<NamedChannelsInput> inputs(InputManagerParameters 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) voidsetNamer(FileNamer namer) voidsetPathParser(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 - Specified by:
inputsin classInputManager<NamedChannelsInput>- Throws:
InputReadFailedException
-
getFileInput
-
setFileInput
-
getPathParser
-
setPathParser
-
isRequireAllFilesMatch
public boolean isRequireAllFilesMatch() -
setRequireAllFilesMatch
public void setRequireAllFilesMatch(boolean requireAllFilesMatch) -
getImgChannelMapCreator
public ChannelMapCreator getImgChannelMapCreator() -
setImgChannelMapCreator
public void setImgChannelMapCreator(ChannelMapCreator imgChannelMapCreator) -
getNamer
public FileNamer getNamer() -
setNamer
public void setNamer(FileNamer namer) -
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.
-