public class ConvertNamedChannelsInputToStack extends InputFromManagerDelegate<NamedChannelsInput> implements StackSequenceInput
NamedChannelsInput
to StackSequenceInput
.Constructor and Description |
---|
ConvertNamedChannelsInputToStack(NamedChannelsInput input,
ExecutionTimeRecorder executionTimeRecorder)
Create with an input.
|
ConvertNamedChannelsInputToStack(NamedChannelsInput input,
int timeIndex,
Optional<String> channelName,
ExecutionTimeRecorder executionTimeRecorder)
Create with an input.
|
Modifier and Type | Method and Description |
---|---|
void |
addToStoreInferNames(NamedProviderStore<TimeSeries> stacks,
int seriesIndex,
Logger logger)
Adds any stacks exposed by the current element to a named-store of stacks - inferring the
names of the
Stack s. |
void |
addToStoreWithName(String name,
NamedProviderStore<TimeSeries> stacks,
int seriesIndex,
Logger logger)
Adds any stacks exposed by the current element to a named-store of stacks - with a particular
name.
|
TimeSeries |
createStackSequenceForSeries(int seriesIndex,
Logger logger)
Creates a supplier of a
TimeSeries of stacks for a particular series number. |
int |
numberFrames()
The number of time-frames in the underlying input image.
|
close, getDelegate, identifier, pathForBinding, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addToStoreInferNames, asSet, asStack
allAssociatedPaths, asFile, close, identifier, identifierAsPath, pathForBinding, pathForBindingRequired
public ConvertNamedChannelsInputToStack(NamedChannelsInput input, ExecutionTimeRecorder executionTimeRecorder)
input
- the input to convert.executionTimeRecorder
- records the execution times of certain operations.public ConvertNamedChannelsInputToStack(NamedChannelsInput input, int timeIndex, Optional<String> channelName, ExecutionTimeRecorder executionTimeRecorder)
input
- the input to convert.timeIndex
- time-index to convert.channelName
- by default all channels are converted into a stack. If set, only this
channel is converted into a stack.executionTimeRecorder
- records the execution times of certain operations.public TimeSeries createStackSequenceForSeries(int seriesIndex, Logger logger) throws ImageIOException
StackSequenceInput
TimeSeries
of stacks for a particular series number.createStackSequenceForSeries
in interface StackSequenceInput
seriesIndex
- the index.logger
- a logger for any non-fatal errors. Fatal errors throw an exception.TimeSeries
of Stack
s.ImageIOException
- if any stack could not be successfully read.public void addToStoreInferNames(NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException
ProvidesStackInput
Stack
s.addToStoreInferNames
in interface ProvidesStackInput
stacks
- the named-store of stacks.seriesIndex
- the index of the series (beginning at 0) to retrieve stacks from the
TimeSeries
.logger
- a logger for any non-fatal errors. Fatal errors throw an exception.OperationFailedException
- if the operation cannot successfully complete.public void addToStoreWithName(String name, NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException
ProvidesStackInput
addToStoreWithName
in interface ProvidesStackInput
name
- the name to use for the added stack.stacks
- the named-store of stacks.seriesIndex
- the index of the series (beginning at 0) to retrieve stacks from the
TimeSeries
.logger
- a logger for any non-fatal errors. Fatal errors throw an exception.OperationFailedException
- if the operation cannot successfully complete.public int numberFrames() throws OperationFailedException
ProvidesStackInput
numberFrames
in interface ProvidesStackInput
OperationFailedException
- if the operation cannot successfully complete.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.