All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class Median extends ChannelProviderUnary
Applies a median-filter with square kernel
Author:
Owen Feehan
  • Constructor Details

    • Median

      public Median()
  • 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.
    • getKernelHalfWidth

      public int getKernelHalfWidth()
      Kernel will be a square kernel of size (2*kernelHalfWidth+1)x(2*kernelHalfWidth+1)
    • setKernelHalfWidth

      public void setKernelHalfWidth(int kernelHalfWidth)
      Kernel will be a square kernel of size (2*kernelHalfWidth+1)x(2*kernelHalfWidth+1)