<tool id="PxGetImageInformation" name="ITKTools Get Image Information" version="0.1">
  <description>A wrapper around ITK Tools, as set of simple command line tools for image analysis.</description>
  <authors>
    <author name="Hakim Achterberg" email="h.achterberg@erasmusmc.nl" url="http://www.bigr.nl/people/HakimAchterberg"/>
  </authors>
  <command version="0.3.0" url="https://github.com/ITKTools/ITKTools">
    <targets>
      <target os="windows" arch="*" paths="vfs://apps/itktools/0.3.0/install/bin" bin="pxgetimageinformation.exe"/>
      <target os="linux" arch="*" modules="itktools/0.3.0" paths="vfs://apps/itktools/0.3.0/install/bin"
              bin="pxgetimageinformation"/>
      <target os="darwin" arch="*" modules="itktools/0.3.0" paths="vfs://apps/itktools/0.3.0/install/bin"
              bin="pxgetimageinformation"/>
    </targets>
    <description>

    </description>
    <license/>
    <authors>
      <author name="Hakim Achterberg" email="h.achterberg@erasmusmc.nl"
              url="http://www.bigr.nl/people/HakimAchterberg"/>
      <author name="Stefan Klein" email="s.klein@erasmusmc.nl" url="http://www.bigr.nl/people/StefanKlein"/>
      <author name="Marius Staring" email="m.staring@lumc.nl" url="http://elastix.isi.uu.nl/marius/index.html"/>
    </authors>
  </command>
  <interface>
    <inputs>
      <input id="image" name="Input Image" datatype="ITKImageFile" prefix="-in" cardinality="1" required="true"/>
      <input id="all" name="Get all image information" datatype="Boolean" prefix="-all" required="false"
             default="true"/>
    </inputs>
    <outputs>
      <output id="dimension" name="Dimension of the image" datatype="Int" cardinality="1" automatic="True"
              location="dimension:\s*(\d+)" method="stdout"/>
      <output id="pixel_type" name="Pixel type of image" datatype="String" cardinality="1" automatic="True"
              location="pixel type:\s*(.*)" method="stdout"/>
      <output id="component_type" name="Component type of image" datatype="String" cardinality="1" automatic="True"
              location="component type:\s*(.*)" method="stdout"/>
      <output id="number_of_components" name="Number of components in the image" datatype="Int" cardinality="1" automatic="True"
              location="# components:\s*(\d+)" method="stdout"/>
      <output id="size" name="Size of the image" datatype="Int" cardinality="unknown" automatic="True"
              location="size:\s*\((.*)\)" method="stdout" separator=", "/>
      <output id="spacing" name="Spacing of the image" datatype="Float" cardinality="unknown" automatic="True"
              location="spacing:\s*\((.*)\)" method="stdout" separator=", "/>
      <output id="origin" name="Spacing of the image" datatype="Float" cardinality="unknown" automatic="True"
              location="origin:\s*\((.*)\)" method="stdout" separator=", "/>
      <output id="direction" name="Spacing of the image" datatype="Float" cardinality="unknown" automatic="True"
              location="direction:\s*\((.*)\)" method="stdout" separator=", "/>
    </outputs>
  </interface>
  <requirements/>
  <tests/>
  <cite>
  </cite>
  <references/>
  <help>
  </help>

</tool>
