public class GroupFiles extends InputManagerWithStackReader<NamedChannelsInput>
InputManagerWithStackReader
that can unify separate images in separate files to form a
single Stack
.
A time-series of Stack
s 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:
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.
Constructor and Description |
---|
GroupFiles() |
Modifier and Type | Method and Description |
---|---|
CheckParsedFilePathBag |
getCheckParsedFilePathBag()
Imposes a condition on each parsed-file-path-bag which must be-fulfilled if a file is to be
included.
|
NamedFiles |
getFileInput() |
ChannelMapCreator |
getImgChannelMapCreator() |
FileNamer |
getNamer() |
FilePathParser |
getPathParser() |
InputsWithDirectory<NamedChannelsInput> |
inputs(InputManagerParameters parameters)
Creates a list of inputs given particular parameters.
|
boolean |
isRequireAllFilesMatch() |
void |
setCheckParsedFilePathBag(CheckParsedFilePathBag checkParsedFilePathBag)
Imposes a condition on each parsed-file-path-bag which must be-fulfilled if a file is to be
included.
|
void |
setFileInput(NamedFiles fileInput) |
void |
setImgChannelMapCreator(ChannelMapCreator imgChannelMapCreator) |
void |
setNamer(FileNamer namer) |
void |
setPathParser(FilePathParser pathParser) |
void |
setRequireAllFilesMatch(boolean requireAllFilesMatch) |
getStackReader, setStackReader
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public InputsWithDirectory<NamedChannelsInput> inputs(InputManagerParameters parameters) throws InputReadFailedException
InputManager
inputs
in class InputManager<NamedChannelsInput>
parameters
- the parameters.InputReadFailedException
- if inputs cannot be successfully read from the file-system.public NamedFiles getFileInput()
public void setFileInput(NamedFiles fileInput)
public FilePathParser getPathParser()
public void setPathParser(FilePathParser pathParser)
public boolean isRequireAllFilesMatch()
public void setRequireAllFilesMatch(boolean requireAllFilesMatch)
public ChannelMapCreator getImgChannelMapCreator()
public void setImgChannelMapCreator(ChannelMapCreator imgChannelMapCreator)
public FileNamer getNamer()
public void setNamer(FileNamer namer)
public CheckParsedFilePathBag getCheckParsedFilePathBag()
public void setCheckParsedFilePathBag(CheckParsedFilePathBag checkParsedFilePathBag)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.