All Implemented Interfaces:
Provider<Channel>, ProviderAsStack
Direct Known Subclasses:
BackgroundSubtractor, WithFilterBase

public abstract class WithRadiusBase extends ChannelProviderUnary
A ChannelProviderUnary with a 'radius' parameter.
  • Constructor Details

    • WithRadiusBase

      public WithRadiusBase()
  • Method Details

    • createFromChannel

      public Channel createFromChannel(Channel channel) throws ProvisionFailedException
      Description copied from class: ChannelProviderUnary
      Creates a Channel given the entity provided by the delegate.
      Specified by:
      createFromChannel in class ChannelProviderUnary
      Parameters:
      channel - the entity provided by the delegate.
      Returns:
      the created Channel that is returned by the provider.
      Throws:
      ProvisionFailedException - if the provider cannot complete successfully.
    • createFromChannel

      protected abstract Channel createFromChannel(Channel channel, int radius) throws ProvisionFailedException
      Creates a new channel from an existing channel and a radius.
      Parameters:
      channel - the input Channel
      radius - the radius in voxels
      Returns:
      the newly created Channel
      Throws:
      ProvisionFailedException - if the channel creation fails
    • getRadius

      public double getRadius()
      The radius of the operation.
    • setRadius

      public void setRadius(double radius)
      The radius of the operation.
    • isRadiusInMeters

      public boolean isRadiusInMeters()
      If true, treats the radius as being in meters. Otherwise, it's in voxels.
    • setRadiusInMeters

      public void setRadiusInMeters(boolean radiusInMeters)
      If true, treats the radius as being in meters. Otherwise, it's in voxels.