<?xml version="1.0" encoding="UTF-8"?>
<executable>
  <category>Filtering.Denoising</category>
  <index>1</index>
  <title>Gradient Anisotropic Diffusion</title>
  <description><![CDATA[Runs gradient anisotropic diffusion on a volume.\n\nAnisotropic diffusion methods reduce noise (or unwanted detail) in images while preserving specific image features, like edges.  For many applications, there is an assumption that light-dark transitions (edges) are interesting.  Standard isotropic diffusion methods move and blur light-dark boundaries.  Anisotropic diffusion methods are formulated to specifically preserve edges. The conductance term for this implementation is a function of the gradient magnitude of the image at each point, reducing the strength of diffusion at edges. The numerical implementation of this equation is similar to that described in the Perona-Malik paper, but uses a more robust technique for gradient magnitude estimation and has been generalized to N-dimensions.]]></description>
  <version>0.1.0.$Revision$(alpha)</version>
  <documentation-url>https://slicer.readthedocs.io/en/latest/user_guide/modules/gradientanisotropicdiffusion.html</documentation-url>
  <license/>
  <contributor>Bill Lorensen (GE)</contributor>
  <acknowledgements><![CDATA[This command module was derived from Insight/Examples (copyright) Insight Software Consortium]]></acknowledgements>
  <parameters>
    <label>Anisotropic Diffusion Parameters</label>
    <description><![CDATA[Parameters for the anisotropic diffusion algorithm]]></description>
    <double>
      <name>conductance</name>
      <longflag>--conductance</longflag>
      <description><![CDATA[Conductance controls the sensitivity of the conductance term. As a general rule, the lower the value, the more strongly the filter preserves edges. A high value will cause diffusion (smoothing) across edges. Note that the number of iterations controls how much smoothing is done within regions bounded by edges.]]></description>
      <label>Conductance</label>
      <default>1</default>
      <constraints>
        <minimum>0</minimum>
        <maximum>10</maximum>
        <step>.01</step>
      </constraints>
    </double>
    <integer>
      <name>numberOfIterations</name>
      <longflag>--iterations</longflag>
      <description><![CDATA[The more iterations, the more smoothing. Each iteration takes the same amount of time. If it takes 10 seconds for one iteration, then it will take 100 seconds for 10 iterations. Note that the conductance controls how much each iteration smooths across edges.]]></description>
      <label>Iterations</label>
      <default>5</default>
      <constraints>
        <minimum>1</minimum>
        <maximum>30</maximum>
        <step>1</step>
      </constraints>
    </integer>
    <double>
      <name>timeStep</name>
      <longflag>--timeStep</longflag>
      <description><![CDATA[The time step depends on the dimensionality of the image. In Slicer the images are 3D and the default (.0625) time step will provide a stable solution.]]></description>
      <label>Time Step</label>
      <default>0.0625</default>
      <constraints>
        <minimum>.001</minimum>
        <maximum>.0625</maximum>
        <step>.001</step>
      </constraints>
    </double>
  </parameters>
  <parameters>
    <label>IO</label>
    <description><![CDATA[Input/output parameters]]></description>
    <image>
      <name>inputVolume</name>
      <label>Input Volume</label>
      <channel>input</channel>
      <index>0</index>
      <description><![CDATA[Input volume to be filtered]]></description>
    </image>
    <image reference="inputVolume">
      <name>outputVolume</name>
      <label>Output Volume</label>
      <channel>output</channel>
      <index>1</index>
      <description><![CDATA[Output filtered]]></description>
    </image>
  </parameters>
  <parameters advanced = "true">
    <label>Advanced</label>
    <description><![CDATA[Advanced parameters for the anisotropic diffusion algorithm]]></description>
    <boolean>
      <name>useImageSpacing</name>
      <longflag>--useImageSpacing</longflag>
      <description>![CDATA[Take into account image spacing in the computation.  It is advisable to turn this option on, especially when the pixel size is different in different dimensions. However, to produce results consistent with Slicer4.2 and earlier, this option should be turned off.]]</description>
      <label>Use image spacing</label>
      <default>true</default>
    </boolean>
  </parameters>
</executable>
