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