class_docstr: Elastix nonlinear registration interface
  
  Example
  -------
  
  >>> from nipype.interfaces.elastix import Registration
  >>> reg = Registration()
  >>> reg.inputs.fixed_image = 'fixed1.nii'
  >>> reg.inputs.moving_image = 'moving1.nii'
  >>> reg.inputs.parameters = ['elastix.txt']
  >>> reg.cmdline
  'elastix -f fixed1.nii -m moving1.nii -threads 1 -out ./ -p elastix.txt'
class_docstr_tok: ["Elastix","nonlinear","registration","interface","Example","--","--","--","-",">",">",">","from","nipype.interfaces.elastix","import","Registration",">",">",">","reg","=","Registration","(",")",">",">",">","reg.inputs.fixed_image","=","'fixed1.nii'",">",">",">","reg.inputs.moving_image","=","'moving1.nii'",">",">",">","reg.inputs.parameters","=","[","'elastix.txt","'","]",">",">",">","reg.cmdline","'elastix","-f","fixed1.nii","-m","moving1.nii","-threads","1","-out",".\/","-p","elastix.txt","'"]
code: def _cast(self, val):
      if val.startswith('"') and val.endswith('"'):
          if val == '"true"':
              return True
          elif val == '"false"':
              return False
          else:
              return val[1:-1]
  
      try:
          return int(val)
      except ValueError:
          try:
              return float(val)
          except ValueError:
              return val
  
imports: import os.path
  import re
  from ...None import logging
  from .base import ElastixBaseInputSpec
  from ..base import CommandLine, TraitedSpec, File, traits, InputMultiPath
label_desc: Use image node_id 2 for calling the Registration obj's underlying member method code with example usage: obj._cast(val) and returns: int, True, False, val, float, val