<?xml version="1.0" encoding="UTF-8"?>
<executable>
  <category>Surface Models</category>
  <title>Label Map Smoothing</title>
  <description><![CDATA[This filter smoothes a binary label map.  With a label map as input, this filter runs an anti-alising algorithm followed by a Gaussian smoothing algorithm.  The output is a smoothed label map.]]></description>
  <version>1.0</version>
  <documentation-url>https://slicer.readthedocs.io/en/latest/user_guide/modules/labelmapsmoothing.html</documentation-url>
  <license/>
  <contributor>Dirk Padfield (GE), Josh Cates (Utah), Ross Whitaker (Utah)</contributor>
  <acknowledgements><![CDATA[This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149.  This filter is based on work developed at the University of Utah, and implemented at GE Research.]]></acknowledgements>
  <parameters advanced="true">
    <label>Label Selection Parameters</label>
    <description><![CDATA[Parameters for selecting the label to smooth]]></description>
    <integer>
      <name>labelToSmooth</name>
      <longflag>--labelToSmooth</longflag>
      <description><![CDATA[The label to smooth.  All others will be ignored.  If no label is selected by the user, the maximum label in the image is chosen by default.]]></description>
      <label>Label to smooth</label>
      <default>-1</default>
    </integer>
  </parameters>
  <parameters advanced="true">
    <label>AntiAliasing Parameters</label>
    <description><![CDATA[Parameters for the AntiAliasing algorithm]]></description>
    <integer>
      <name>numberOfIterations</name>
      <longflag>--numberOfIterations</longflag>
      <description><![CDATA[The number of iterations of the level set AntiAliasing algorithm]]></description>
      <label>Number of Iterations</label>
      <default>50</default>
    </integer>
    <float>
      <name>maxRMSError</name>
      <longflag>--maxRMSError</longflag>
      <description><![CDATA[The maximum RMS error.]]></description>
      <label>Maximum RMS Error</label>
      <default>0.01</default>
    </float>
  </parameters>
  <parameters advanced="true">
    <label>Gaussian Smoothing Parameters</label>
    <description><![CDATA[Parameters for Gaussian Smoothing]]></description>
    <float>
      <name>gaussianSigma</name>
      <longflag>--gaussianSigma</longflag>
      <description><![CDATA[The standard deviation of the Gaussian kernel]]></description>
      <label>Sigma</label>
      <default>0.2</default>
    </float>
  </parameters>
  <parameters>
    <label>IO</label>
    <description><![CDATA[Input/output parameters]]></description>
    <image type="label">
      <name>inputVolume</name>
      <label>Input Volume</label>
      <channel>input</channel>
      <index>0</index>
      <description><![CDATA[Input label map to smooth]]></description>
    </image>
    <image type="label" reference="inputVolume">
      <name>outputVolume</name>
      <label>Output Volume</label>
      <channel>output</channel>
      <index>1</index>
      <description><![CDATA[Smoothed label map]]></description>
    </image>
  </parameters>
</executable>
