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

    Constructors
    Constructor
    Description
    ConvertNamedChannelsInputToStack(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 Type
    Method
    Description
    void
    addToStoreInferNames(NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger)
     
    void
    addToStoreWithName(String name, NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger)
     
    TimeSeries
    createStackSequenceForSeries(int seriesIndex, Logger logger)
     
    int
     

    Methods inherited from class org.anchoranalysis.io.input.InputFromManagerDelegate

    close, getDelegate, identifier, pathForBinding, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.anchoranalysis.io.input.InputFromManager

    allAssociatedPaths, asFile, close, identifier, identifierAsPath, pathForBinding, pathForBindingRequired

    Methods 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:
      createStackSequenceForSeries in interface StackSequenceInput
      Throws:
      ImageIOException
    • addToStoreInferNames

      public void addToStoreInferNames(NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException
      Specified by:
      addToStoreInferNames in interface ProvidesStackInput
      Throws:
      OperationFailedException
    • addToStoreWithName

      public void addToStoreWithName(String name, NamedProviderStore<TimeSeries> stacks, int seriesIndex, Logger logger) throws OperationFailedException
      Specified by:
      addToStoreWithName in interface ProvidesStackInput
      Throws:
      OperationFailedException
    • numberFrames

      public int numberFrames() throws OperationFailedException
      Specified by:
      numberFrames in interface ProvidesStackInput
      Throws:
      OperationFailedException