Class FromChannelBase

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromChannelBase
All Implemented Interfaces:
Provider<Mask>, ProviderAsStack
Direct Known Subclasses:
FromChannel, SegmentChannel, Threshold

public abstract class FromChannelBase extends MaskProvider
Base-class for MaskProviders that accept a Channel as input.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Mask
    createFromSource(Channel source)
    Creates a Mask from the source Channel.
    Mask
    get()
     
    ChannelProvider
    The provider for the channel from which to create the mask.
    void
    setChannel(ChannelProvider channel)
    The provider for the channel from which to create the mask.

    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, onInitialization

    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

    • FromChannelBase

      public FromChannelBase()
  • Method Details

    • get

      public Mask get() throws ProvisionFailedException
      Throws:
      ProvisionFailedException
    • createFromSource

      protected abstract Mask createFromSource(Channel source) throws CreateException
      Creates a Mask from the source Channel.
      Parameters:
      source - the source channel
      Returns:
      the created mask
      Throws:
      CreateException - if the mask creation fails
    • getChannel

      public ChannelProvider getChannel()
      The provider for the channel from which to create the mask.
    • setChannel

      public void setChannel(ChannelProvider channel)
      The provider for the channel from which to create the mask.