Class AnisotropicDiffusion

All Implemented Interfaces:
Provider<Channel>, ProviderAsStack

public class AnisotropicDiffusion extends ChannelProviderUnary
Author:
Owen Feehan
  • Constructor Details

    • AnisotropicDiffusion

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