-
Notifications
You must be signed in to change notification settings - Fork 524
/
converters.py
109 lines (77 loc) · 3.35 KB
/
converters.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
import os
from ..base import (
CommandLine,
CommandLineInputSpec,
SEMLikeCommandLine,
TraitedSpec,
File,
Directory,
traits,
isdefined,
InputMultiPath,
OutputMultiPath,
)
class DWISimpleCompareInputSpec(CommandLineInputSpec):
inputVolume1 = File(
desc="First input volume (.nhdr or .nrrd)",
exists=True,
argstr="--inputVolume1 %s",
)
inputVolume2 = File(
desc="Second input volume (.nhdr or .nrrd)",
exists=True,
argstr="--inputVolume2 %s",
)
checkDWIData = traits.Bool(
desc="check for existence of DWI data, and if present, compare it",
argstr="--checkDWIData ",
)
class DWISimpleCompareOutputSpec(TraitedSpec):
pass
class DWISimpleCompare(SEMLikeCommandLine):
"""title: Nrrd DWI comparison
category: Converters
description: Compares two nrrd format DWI images and verifies that gradient magnitudes, gradient directions, measurement frame, and max B0 value are identicle. Used for testing DWIConvert.
version: 0.1.0.$Revision: 916 $(alpha)
documentation-url: http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/DWIConvert
license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt
contributor: Mark Scully (UIowa)
acknowledgements: This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Additional support for DTI data produced on Philips scanners was contributed by Vincent Magnotta and Hans Johnson at the University of Iowa.
"""
input_spec = DWISimpleCompareInputSpec
output_spec = DWISimpleCompareOutputSpec
_cmd = " DWISimpleCompare "
_outputs_filenames = {}
_redirect_x = False
class DWICompareInputSpec(CommandLineInputSpec):
inputVolume1 = File(
desc="First input volume (.nhdr or .nrrd)",
exists=True,
argstr="--inputVolume1 %s",
)
inputVolume2 = File(
desc="Second input volume (.nhdr or .nrrd)",
exists=True,
argstr="--inputVolume2 %s",
)
class DWICompareOutputSpec(TraitedSpec):
pass
class DWICompare(SEMLikeCommandLine):
"""title: Nrrd DWI comparison
category: Converters
description: Compares two nrrd format DWI images and verifies that gradient magnitudes, gradient directions, measurement frame, and max B0 value are identicle. Used for testing DWIConvert.
version: 0.1.0.$Revision: 916 $(alpha)
documentation-url: http://www.slicer.org/slicerWiki/index.php/Documentation/4.1/Modules/DWIConvert
license: https://www.nitrc.org/svn/brains/BuildScripts/trunk/License.txt
contributor: Mark Scully (UIowa)
acknowledgements: This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Additional support for DTI data produced on Philips scanners was contributed by Vincent Magnotta and Hans Johnson at the University of Iowa.
"""
input_spec = DWICompareInputSpec
output_spec = DWICompareOutputSpec
_cmd = " DWICompare "
_outputs_filenames = {}
_redirect_x = False