Class FromStackChannel

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromStackChannel
All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Mask
    get()
     
    int
    The index of the channel to use from the stack.
    The identifier of the stack provider to retrieve the stack from.
    void
    onInitialization(ImageInitialization initialization)
     
    void
    setChannelIndex(int channelIndex)
    The index of the channel to use from the stack.
    void
    setStackProviderID(String stackProviderID)
    The identifier of the stack provider to retrieve the stack from.

    Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider

    getAsStack

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FromStackChannel

      public FromStackChannel()
  • Method Details

    • onInitialization

      public void onInitialization(ImageInitialization initialization) throws InitializeException
      Overrides:
      onInitialization in class InitializableBean<MaskProvider, ImageInitialization>
      Throws:
      InitializeException
    • get

      public Mask get()
    • 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.