Class Median
- All Implemented Interfaces:
Provider<Channel>,ProviderAsStack
Applies a median-filter with square kernel
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromChannel(Channel channel) Creates aChannelgiven the entity provided by the delegate.intKernel will be a square kernel of size(2*kernelHalfWidth+1)x(2*kernelHalfWidth+1)voidsetKernelHalfWidth(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, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.ChannelProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Median
public Median()
-
-
Method Details
-
createFromChannel
Description copied from class:ChannelProviderUnaryCreates aChannelgiven the entity provided by the delegate.- Specified by:
createFromChannelin classChannelProviderUnary- Parameters:
channel- the entity provided by the delegate.- Returns:
- the created
Channelthat 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)
-