cmtklib.interfaces.misc module

ConcatOutputsAsTuple

Link to code

Bases: nipype.interfaces.base.core.BaseInterface

Concatenate 2 different output file as a Tuple of 2 files.

Examples

>>> from cmtklib.interfaces.misc import ConcatOutputsAsTuple
>>> concat_outputs = ConcatOutputsAsTuple()
>>> concat_outputs.inputs.input1  = 'output_interface1.nii.gz'
>>> concat_outputs.inputs.input2  = 'output_interface2.nii.gz'
>>> concat_outputs.run() 

input1 : a pathlike object or string representing an existing file input2 : a pathlike object or string representing an existing file

out_tuple : a tuple of the form: (a pathlike object or string representing an existing file, a pathlike object or string representing an existing file)

ExtractHeaderVoxel2WorldMatrix

Link to code

Bases: nipype.interfaces.base.core.BaseInterface

Write in a text file the voxel-to-world transform matrix from the heaer of a Nifti image.

Examples

>>> from cmtklib.interfaces.misc import ExtractHeaderVoxel2WorldMatrix
>>> extract_mat = ExtractHeaderVoxel2WorldMatrix()
>>> extract_mat.inputs.in_file = 'sub-01_T1w.nii.gz'
>>> extract_mat.run() 
in_filea pathlike object or string representing an existing file

Input image file.

out_matrixa pathlike object or string representing an existing file

Output voxel to world affine transform file.

ExtractImageVoxelSizes

Link to code

Bases: nipype.interfaces.base.core.BaseInterface

Returns a list of voxel sizes from an image.

Examples

>>> from cmtklib.interfaces.misc import ExtractImageVoxelSizes
>>> extract_voxel_sizes = ExtractImageVoxelSizes()
>>> extract_voxel_sizes.inputs.in_file = 'sub-01_T1w.nii.gz'
>>> extract_voxel_sizes.run() 

in_file : a pathlike object or string representing an existing file

voxel_sizes : a list of items which are any value