Class Median

Object
AnchorBean<ChannelProvider>
InitializableBean<ChannelProvider, ImageInitialization>
ImageBean<ChannelProvider>
BeanProviderAsStackBase<ChannelProvider, Channel>
ChannelProvider
ChannelProviderUnary
Median
All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Channel
    createFromChannel(Channel channel)
     
    int
    Kernel will be a square kernel of size (2*kernelHalfWidth+1)x(2*kernelHalfWidth+1)
    void
    setKernelHalfWidth(int kernelHalfWidth)
    Kernel will be a square kernel of size (2*kernelHalfWidth+1)x(2*kernelHalfWidth+1)

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProviderUnary

    get, getChannel, setChannel

    Methods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider

    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

    • Median

      public Median()
  • Method Details

    • createFromChannel

      public Channel createFromChannel(Channel channel) throws ProvisionFailedException
      Specified by:
      createFromChannel in class ChannelProviderUnary
      Throws:
      ProvisionFailedException
    • 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)