All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class FromStackChannel extends MaskProvider
Creates a Mask from a specific channel in a stack.
  • Constructor Details

    • FromStackChannel

      public FromStackChannel()
  • Method Details

    • onInitialization

      public void onInitialization(ImageInitialization initialization) throws InitializeException
      Description copied from class: InitializableBean
      Called after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.
      Overrides:
      onInitialization in class InitializableBean<MaskProvider,ImageInitialization>
      Parameters:
      initialization - parameters used for initialization.
      Throws:
      InitializeException - if initialization does not successfully complete.
    • get

      public Mask get()
      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
    • getChannelIndex

      public int getChannelIndex()
      The index of the channel to use from the stack.
    • setChannelIndex

      public void setChannelIndex(int channelIndex)
      The index of the channel to use from the stack.
    • getStackProviderID

      public String getStackProviderID()
      The identifier of the stack provider to retrieve the stack from.
    • setStackProviderID

      public void setStackProviderID(String stackProviderID)
      The identifier of the stack provider to retrieve the stack from.