class_docstr: ApplyTransforms, applied to an input image, transforms it according to a
  reference image and a transform (or a set of transforms).
  
  Examples
  --------
  
  >>> from nipype.interfaces.ants import ApplyTransforms
  >>> at = ApplyTransforms()
  >>> at.inputs.input_image = 'moving1.nii'
  >>> at.inputs.reference_image = 'fixed1.nii'
  >>> at.inputs.transforms = 'identity'
  >>> at.cmdline
  'antsApplyTransforms --default-value 0 --float 0 --input moving1.nii --interpolation Linear --output moving1_trans.nii --reference-image fixed1.nii --transform identity'
  
  >>> at = ApplyTransforms()
  >>> at.inputs.dimension = 3
  >>> at.inputs.input_image = 'moving1.nii'
  >>> at.inputs.reference_image = 'fixed1.nii'
  >>> at.inputs.output_image = 'deformed_moving1.nii'
  >>> at.inputs.interpolation = 'Linear'
  >>> at.inputs.default_value = 0
  >>> at.inputs.transforms = ['ants_Warp.nii.gz', 'trans.mat']
  >>> at.inputs.invert_transform_flags = [False, True]
  >>> at.cmdline
  'antsApplyTransforms --default-value 0 --dimensionality 3 --float 0 --input moving1.nii --interpolation Linear --output deformed_moving1.nii --reference-image fixed1.nii --transform ants_Warp.nii.gz --transform [ trans.mat, 1 ]'
  
  >>> at1 = ApplyTransforms()
  >>> at1.inputs.dimension = 3
  >>> at1.inputs.input_image = 'moving1.nii'
  >>> at1.inputs.reference_image = 'fixed1.nii'
  >>> at1.inputs.output_image = 'deformed_moving1.nii'
  >>> at1.inputs.interpolation = 'BSpline'
  >>> at1.inputs.interpolation_parameters = (5,)
  >>> at1.inputs.default_value = 0
  >>> at1.inputs.transforms = ['ants_Warp.nii.gz', 'trans.mat']
  >>> at1.inputs.invert_transform_flags = [False, False]
  >>> at1.cmdline
  'antsApplyTransforms --default-value 0 --dimensionality 3 --float 0 --input moving1.nii --interpolation BSpline[ 5 ] --output deformed_moving1.nii --reference-image fixed1.nii --transform ants_Warp.nii.gz --transform trans.mat'
  
  Identity transforms may be used as part of a chain:
  
  >>> at2 = ApplyTransforms()
  >>> at2.inputs.dimension = 3
  >>> at2.inputs.input_image = 'moving1.nii'
  >>> at2.inputs.reference_image = 'fixed1.nii'
  >>> at2.inputs.output_image = 'deformed_moving1.nii'
  >>> at2.inputs.interpolation = 'BSpline'
  >>> at2.inputs.interpolation_parameters = (5,)
  >>> at2.inputs.default_value = 0
  >>> at2.inputs.transforms = ['identity', 'ants_Warp.nii.gz', 'trans.mat']
  >>> at2.cmdline
  'antsApplyTransforms --default-value 0 --dimensionality 3 --float 0 --input moving1.nii --interpolation BSpline[ 5 ] --output deformed_moving1.nii --reference-image fixed1.nii --transform identity --transform ants_Warp.nii.gz --transform trans.mat'
class_docstr_tok: ["ApplyTransforms",",","applied","to","an","input","image",",","transforms","it","according","to","a","reference","image","and","a","transform","(","or","a","set","of","transforms",")",".","Examples","--","--","--","--",">",">",">","from","nipype.interfaces.ants","import","ApplyTransforms",">",">",">","at","=","ApplyTransforms","(",")",">",">",">","at.inputs.input_image","=","'moving1.nii'",">",">",">","at.inputs.reference_image","=","'fixed1.nii'",">",">",">","at.inputs.transforms","=","'identity'",">",">",">","at.cmdline","'antsApplyTransforms","--","default-value","0","--","float","0","--","input","moving1.nii","--","interpolation","Linear","--","output","moving1_trans.nii","--","reference-image","fixed1.nii","--","transform","identity'",">",">",">","at","=","ApplyTransforms","(",")",">",">",">","at.inputs.dimension","=","3",">",">",">","at.inputs.input_image","=","'moving1.nii'",">",">",">","at.inputs.reference_image","=","'fixed1.nii'",">",">",">","at.inputs.output_image","=","'deformed_moving1.nii'",">",">",">","at.inputs.interpolation","=","'Linear'",">",">",">","at.inputs.default_value","=","0",">",">",">","at.inputs.transforms","=","[","'ants_Warp.nii.gz","'",",","'trans.mat","'","]",">",">",">","at.inputs.invert_transform_flags","=","[","False",",","True","]",">",">",">","at.cmdline","'antsApplyTransforms","--","default-value","0","--","dimensionality","3","--","float","0","--","input","moving1.nii","--","interpolation","Linear","--","output","deformed_moving1.nii","--","reference-image","fixed1.nii","--","transform","ants_Warp.nii.gz","--","transform","[","trans.mat",",","1","]","'",">",">",">","at1","=","ApplyTransforms","(",")",">",">",">","at1.inputs.dimension","=","3",">",">",">","at1.inputs.input_image","=","'moving1.nii'",">",">",">","at1.inputs.reference_image","=","'fixed1.nii'",">",">",">","at1.inputs.output_image","=","'deformed_moving1.nii'",">",">",">","at1.inputs.interpolation","=","'BSpline'",">",">",">","at1.inputs.interpolation_parameters","=","(","5",",",")",">",">",">","at1.inputs.default_value","=","0",">",">",">","at1.inputs.transforms","=","[","'ants_Warp.nii.gz","'",",","'trans.mat","'","]",">",">",">","at1.inputs.invert_transform_flags","=","[","False",",","False","]",">",">",">","at1.cmdline","'antsApplyTransforms","--","default-value","0","--","dimensionality","3","--","float","0","--","input","moving1.nii","--","interpolation","BSpline","[","5","]","--","output","deformed_moving1.nii","--","reference-image","fixed1.nii","--","transform","ants_Warp.nii.gz","--","transform","trans.mat'","Identity","transforms","may","be","used","as","part","of","a","chain",":",">",">",">","at2","=","ApplyTransforms","(",")",">",">",">","at2.inputs.dimension","=","3",">",">",">","at2.inputs.input_image","=","'moving1.nii'",">",">",">","at2.inputs.reference_image","=","'fixed1.nii'",">",">",">","at2.inputs.output_image","=","'deformed_moving1.nii'",">",">",">","at2.inputs.interpolation","=","'BSpline'",">",">",">","at2.inputs.interpolation_parameters","=","(","5",",",")",">",">",">","at2.inputs.default_value","=","0",">",">",">","at2.inputs.transforms","=","[","'identity","'",",","'ants_Warp.nii.gz","'",",","'trans.mat","'","]",">",">",">","at2.cmdline","'antsApplyTransforms","--","default-value","0","--","dimensionality","3","--","float","0","--","input","moving1.nii","--","interpolation","BSpline","[","5","]","--","output","deformed_moving1.nii","--","reference-image","fixed1.nii","--","transform","identity","--","transform","ants_Warp.nii.gz","--","transform","trans.mat","'"]
code: def _list_outputs(self):
      outputs = self._outputs().get()
      outputs["output_image"] = os.path.abspath(
          self._gen_filename("output_image")
      )
      return outputs
  
imports: import os
  from .base import ANTSCommand, ANTSCommandInputSpec
  from ..base import TraitedSpec, File, traits, isdefined, InputMultiObject
  from ...utils.filemanip import split_filename
label_desc: Use image node_id 5 for calling the ApplyTransforms obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs