Class Threshold

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

public class Threshold extends FromChannelBase
Thresholds a channel to produce a mask, reusing (and modifying) the input-buffers of the channel if possible.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Mask
    createFromSource(Channel source)
    Creates a Mask from the source Channel.
    Thresholder
    The thresholder that will convert a channel into a binary-channel
    void
    setThresholder(Thresholder thresholder)
    The thresholder that will convert a channel into a binary-channel

    Methods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromChannelBase

    get, getChannel, setChannel

    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

    • Threshold

      public Threshold()
  • Method Details

    • createFromSource

      protected Mask createFromSource(Channel source) throws CreateException
      Description copied from class: FromChannelBase
      Creates a Mask from the source Channel.
      Specified by:
      createFromSource in class FromChannelBase
      Parameters:
      source - the source channel
      Returns:
      the created mask
      Throws:
      CreateException - if the mask creation fails
    • getThresholder

      public Thresholder getThresholder()
      The thresholder that will convert a channel into a binary-channel
    • setThresholder

      public void setThresholder(Thresholder thresholder)
      The thresholder that will convert a channel into a binary-channel