niworkflows.interfaces.nitransforms module

Wrappers of NiTransforms.

class niworkflows.interfaces.nitransforms.ConcatenateXFMs(from_file=None, resource_monitor=None, **inputs)[source]

Bases: SimpleInterface

Write a single, flattened transform file.

Optional Inputs:
  • in_xfms (a list of items which are a pathlike object or string representing an existing file) – Input transform piles.

  • inverse (a boolean) – Generate inverse. (Nipype default value: False)

  • moving (a pathlike object or string representing an existing file) – Moving file (only for writing LTA format, if not concatenating another LTA).

  • out_fmt (‘itk’ or ‘fs’) – Output format. (Nipype default value: itk)

  • reference (a pathlike object or string representing an existing file) – Reference file (only for writing LTA format, if not concatenating another LTA).

Outputs:
  • out_inv (a pathlike object or string representing a file) – Output, combined transform.

  • out_xfm (a pathlike object or string representing an existing file) – Output, combined transform.

niworkflows.interfaces.nitransforms.concatenate_xfms(in_files, out_file, out_inv=None, reference=None, moving=None, fmt='itk')[source]

Concatenate linear transforms.