Class AnisotropicDiffusion
- All Implemented Interfaces:
Provider<Channel>
,ProviderAsStack
Performs Perona-Malik Anisotropic
Diffusion.
See the ImgLib2 plugin documentation.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromChannel
(Channel channel) Creates aChannel
given the entity provided by the delegate.double
the integration constant for the numerical integration scheme.int
How many iterations to perform diffusion.double
getKappa()
A parameter kappa associated with the diffusion functions.boolean
isDo3D()
Whether to perform the diffusion in 3D direction, or rather only in the 2D plane.boolean
If true uses, the strong-edge-enhancer diffusion function, otherwise the wide-region-enhancer.void
setDeltat
(double deltat) the integration constant for the numerical integration scheme.void
setDo3D
(boolean do3D) Whether to perform the diffusion in 3D direction, or rather only in the 2D plane.void
setIterations
(int iterations) How many iterations to perform diffusion.void
setKappa
(double kappa) A parameter kappa associated with the diffusion functions.void
setStrongEdgeEnhancer
(boolean strongEdgeEnhancer) If true uses, the strong-edge-enhancer diffusion function, otherwise the wide-region-enhancer.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
-
Constructor Details
-
AnisotropicDiffusion
public AnisotropicDiffusion()
-
-
Method Details
-
createFromChannel
Description copied from class:ChannelProviderUnary
Creates aChannel
given the entity provided by the delegate.- Specified by:
createFromChannel
in classChannelProviderUnary
- 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.
-
getKappa
public double getKappa()A parameter kappa associated with the diffusion functions. -
setKappa
public void setKappa(double kappa) A parameter kappa associated with the diffusion functions. -
getDeltat
public double getDeltat()the integration constant for the numerical integration scheme. Typically less that 1. -
setDeltat
public void setDeltat(double deltat) the integration constant for the numerical integration scheme. Typically less that 1. -
isDo3D
public boolean isDo3D()Whether to perform the diffusion in 3D direction, or rather only in the 2D plane. -
setDo3D
public void setDo3D(boolean do3D) Whether to perform the diffusion in 3D direction, or rather only in the 2D plane. -
getIterations
public int getIterations()How many iterations to perform diffusion. -
setIterations
public void setIterations(int iterations) How many iterations to perform diffusion. -
isStrongEdgeEnhancer
public boolean isStrongEdgeEnhancer()If true uses, the strong-edge-enhancer diffusion function, otherwise the wide-region-enhancer. -
setStrongEdgeEnhancer
public void setStrongEdgeEnhancer(boolean strongEdgeEnhancer) If true uses, the strong-edge-enhancer diffusion function, otherwise the wide-region-enhancer.
-