Class ConvertNamedChannelsInputToStack
Object
InputFromManagerDelegate<NamedChannelsInput>
ConvertNamedChannelsInputToStack
- All Implemented Interfaces:
ProvidesStackInput,StackSequenceInput,InputFromManager
public class ConvertNamedChannelsInputToStack
extends InputFromManagerDelegate<NamedChannelsInput>
implements StackSequenceInput
An input object that converts
NamedChannelsInput to StackSequenceInput.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionConvertNamedChannelsInputToStack(NamedChannelsInput input, int timeIndex, Optional<String> channelName, ExecutionTimeRecorder executionTimeRecorder) Create with an input.ConvertNamedChannelsInputToStack(NamedChannelsInput input, ExecutionTimeRecorder executionTimeRecorder) Create with an input. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToStoreInferNames(NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) voidaddToStoreWithName(String name, NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) TimeSeriescreateStackSequenceForSeries(int seriesIndex, Logger logger) intMethods inherited from class org.anchoranalysis.io.input.InputFromManagerDelegate
close, getDelegate, identifier, pathForBinding, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.anchoranalysis.io.input.InputFromManager
allAssociatedPaths, asFile, close, identifier, identifierAsPath, pathForBinding, pathForBindingRequiredMethods inherited from interface org.anchoranalysis.image.io.stack.input.ProvidesStackInput
addToStoreInferNames, asSet, asStack
-
Constructor Details
-
ConvertNamedChannelsInputToStack
public ConvertNamedChannelsInputToStack(NamedChannelsInput input, ExecutionTimeRecorder executionTimeRecorder) Create with an input.- Parameters:
input- the input to convert.executionTimeRecorder- records the execution times of certain operations.
-
ConvertNamedChannelsInputToStack
public ConvertNamedChannelsInputToStack(NamedChannelsInput input, int timeIndex, Optional<String> channelName, ExecutionTimeRecorder executionTimeRecorder) Create with an input.- Parameters:
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.
-
-
Method Details
-
createStackSequenceForSeries
public TimeSeries createStackSequenceForSeries(int seriesIndex, Logger logger) throws ImageIOException - Specified by:
createStackSequenceForSeriesin interfaceStackSequenceInput- Throws:
ImageIOException
-
addToStoreInferNames
public void addToStoreInferNames(NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException - Specified by:
addToStoreInferNamesin interfaceProvidesStackInput- Throws:
OperationFailedException
-
addToStoreWithName
public void addToStoreWithName(String name, NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException - Specified by:
addToStoreWithNamein interfaceProvidesStackInput- Throws:
OperationFailedException
-
numberFrames
public int numberFrames() throws OperationFailedException- Specified by:
numberFramesin interfaceProvidesStackInput- Throws:
OperationFailedException
-