niwrap-mrtrix 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of niwrap-mrtrix might be problematic. Click here for more details.
- niwrap_mrtrix/mrtrix/__init__.py +130 -0
- niwrap_mrtrix/mrtrix/afdconnectivity.py +445 -0
- niwrap_mrtrix/mrtrix/amp2response.py +453 -0
- niwrap_mrtrix/mrtrix/amp2sh.py +656 -0
- niwrap_mrtrix/mrtrix/connectome2tck.py +470 -0
- niwrap_mrtrix/mrtrix/connectomeedit.py +338 -0
- niwrap_mrtrix/mrtrix/connectomestats.py +767 -0
- niwrap_mrtrix/mrtrix/dcmedit.py +440 -0
- niwrap_mrtrix/mrtrix/dcminfo.py +416 -0
- niwrap_mrtrix/mrtrix/dirflip.py +362 -0
- niwrap_mrtrix/mrtrix/dirgen.py +423 -0
- niwrap_mrtrix/mrtrix/dirmerge.py +365 -0
- niwrap_mrtrix/mrtrix/dirorder.py +347 -0
- niwrap_mrtrix/mrtrix/dirsplit.py +358 -0
- niwrap_mrtrix/mrtrix/dirstat.py +530 -0
- niwrap_mrtrix/mrtrix/dwi2adc.py +428 -0
- niwrap_mrtrix/mrtrix/dwi2fod.py +879 -0
- niwrap_mrtrix/mrtrix/dwi2mask.py +463 -0
- niwrap_mrtrix/mrtrix/dwi2response.py +1295 -0
- niwrap_mrtrix/mrtrix/dwi2tensor.py +587 -0
- niwrap_mrtrix/mrtrix/dwibiascorrect.py +467 -0
- niwrap_mrtrix/mrtrix/dwidenoise.py +478 -0
- niwrap_mrtrix/mrtrix/dwiextract.py +825 -0
- niwrap_mrtrix/mrtrix/dwigradcheck.py +534 -0
- niwrap_mrtrix/mrtrix/fixel2peaks.py +452 -0
- niwrap_mrtrix/mrtrix/fixel2sh.py +357 -0
- niwrap_mrtrix/mrtrix/fixel2tsf.py +357 -0
- niwrap_mrtrix/mrtrix/fixel2voxel.py +437 -0
- niwrap_mrtrix/mrtrix/fixelcfestats.py +893 -0
- niwrap_mrtrix/mrtrix/fixelconnectivity.py +391 -0
- niwrap_mrtrix/mrtrix/fixelconvert.py +588 -0
- niwrap_mrtrix/mrtrix/fixelcorrespondence.py +371 -0
- niwrap_mrtrix/mrtrix/fixelcrop.py +348 -0
- niwrap_mrtrix/mrtrix/fixelfilter.py +616 -0
- niwrap_mrtrix/mrtrix/fixelreorient.py +361 -0
- niwrap_mrtrix/mrtrix/fod2dec.py +469 -0
- niwrap_mrtrix/mrtrix/fod2fixel.py +530 -0
- niwrap_mrtrix/mrtrix/label2colour.py +351 -0
- niwrap_mrtrix/mrtrix/label2mesh.py +343 -0
- niwrap_mrtrix/mrtrix/labelconvert.py +377 -0
- niwrap_mrtrix/mrtrix/labelstats.py +344 -0
- niwrap_mrtrix/mrtrix/maskdump.py +336 -0
- niwrap_mrtrix/mrtrix/maskfilter.py +537 -0
- niwrap_mrtrix/mrtrix/mesh2voxel.py +348 -0
- niwrap_mrtrix/mrtrix/meshconvert.py +410 -0
- niwrap_mrtrix/mrtrix/meshfilter.py +370 -0
- niwrap_mrtrix/mrtrix/mraverageheader.py +396 -0
- niwrap_mrtrix/mrtrix/mrcalc.py +3047 -0
- niwrap_mrtrix/mrtrix/mrcat.py +382 -0
- niwrap_mrtrix/mrtrix/mrcentroid.py +344 -0
- niwrap_mrtrix/mrtrix/mrcheckerboardmask.py +363 -0
- niwrap_mrtrix/mrtrix/mrclusterstats.py +736 -0
- niwrap_mrtrix/mrtrix/mrcolour.py +401 -0
- niwrap_mrtrix/mrtrix/mrconvert.py +1423 -0
- niwrap_mrtrix/mrtrix/mrdegibbs.py +443 -0
- niwrap_mrtrix/mrtrix/mrdump.py +351 -0
- niwrap_mrtrix/mrtrix/mredit.py +546 -0
- niwrap_mrtrix/mrtrix/mrfilter.py +716 -0
- niwrap_mrtrix/mrtrix/mrgrid.py +819 -0
- niwrap_mrtrix/mrtrix/mrhistmatch.py +403 -0
- niwrap_mrtrix/mrtrix/mrhistogram.py +393 -0
- niwrap_mrtrix/mrtrix/mrinfo.py +990 -0
- niwrap_mrtrix/mrtrix/mrmath.py +413 -0
- niwrap_mrtrix/mrtrix/mrmetric.py +425 -0
- niwrap_mrtrix/mrtrix/mrregister.py +1676 -0
- niwrap_mrtrix/mrtrix/mrstats.py +427 -0
- niwrap_mrtrix/mrtrix/mrthreshold.py +549 -0
- niwrap_mrtrix/mrtrix/mrtransform.py +1061 -0
- niwrap_mrtrix/mrtrix/mtnormalise.py +596 -0
- niwrap_mrtrix/mrtrix/peaks2amp.py +334 -0
- niwrap_mrtrix/mrtrix/peaks2fixel.py +349 -0
- niwrap_mrtrix/mrtrix/responsemean.py +316 -0
- niwrap_mrtrix/mrtrix/sh2amp.py +640 -0
- niwrap_mrtrix/mrtrix/sh2peaks.py +505 -0
- niwrap_mrtrix/mrtrix/sh2power.py +353 -0
- niwrap_mrtrix/mrtrix/sh2response.py +394 -0
- niwrap_mrtrix/mrtrix/shbasis.py +373 -0
- niwrap_mrtrix/mrtrix/shconv.py +498 -0
- niwrap_mrtrix/mrtrix/tck2connectome.py +580 -0
- niwrap_mrtrix/mrtrix/tck2fixel.py +363 -0
- niwrap_mrtrix/mrtrix/tckconvert.py +580 -0
- niwrap_mrtrix/mrtrix/tckdfc.py +551 -0
- niwrap_mrtrix/mrtrix/tckedit.py +1003 -0
- niwrap_mrtrix/mrtrix/tckgen.py +1983 -0
- niwrap_mrtrix/mrtrix/tckglobal.py +758 -0
- niwrap_mrtrix/mrtrix/tckinfo.py +329 -0
- niwrap_mrtrix/mrtrix/tckmap.py +772 -0
- niwrap_mrtrix/mrtrix/tckresample.py +580 -0
- niwrap_mrtrix/mrtrix/tcksample.py +404 -0
- niwrap_mrtrix/mrtrix/tcksift.py +592 -0
- niwrap_mrtrix/mrtrix/tcksift2.py +730 -0
- niwrap_mrtrix/mrtrix/tckstats.py +441 -0
- niwrap_mrtrix/mrtrix/tcktransform.py +340 -0
- niwrap_mrtrix/mrtrix/tensor2metric.py +544 -0
- niwrap_mrtrix/mrtrix/transformcalc.py +344 -0
- niwrap_mrtrix/mrtrix/transformcompose.py +465 -0
- niwrap_mrtrix/mrtrix/transformconvert.py +346 -0
- niwrap_mrtrix/mrtrix/tsfdivide.py +340 -0
- niwrap_mrtrix/mrtrix/tsfinfo.py +344 -0
- niwrap_mrtrix/mrtrix/tsfmult.py +340 -0
- niwrap_mrtrix/mrtrix/tsfsmooth.py +347 -0
- niwrap_mrtrix/mrtrix/tsfthreshold.py +349 -0
- niwrap_mrtrix/mrtrix/tsfvalidate.py +328 -0
- niwrap_mrtrix/mrtrix/v_5tt2gmwmi.py +359 -0
- niwrap_mrtrix/mrtrix/v_5tt2vis.py +412 -0
- niwrap_mrtrix/mrtrix/v_5ttcheck.py +337 -0
- niwrap_mrtrix/mrtrix/v_5ttedit.py +420 -0
- niwrap_mrtrix/mrtrix/v_5ttgen.py +816 -0
- niwrap_mrtrix/mrtrix/vectorstats.py +585 -0
- niwrap_mrtrix/mrtrix/voxel2fixel.py +350 -0
- niwrap_mrtrix/mrtrix/voxel2mesh.py +376 -0
- niwrap_mrtrix/mrtrix/warp2metric.py +449 -0
- niwrap_mrtrix/mrtrix/warpconvert.py +411 -0
- niwrap_mrtrix/mrtrix/warpcorrect.py +368 -0
- niwrap_mrtrix/mrtrix/warpinit.py +356 -0
- niwrap_mrtrix/mrtrix/warpinvert.py +370 -0
- niwrap_mrtrix-0.5.0.dist-info/METADATA +8 -0
- niwrap_mrtrix-0.5.0.dist-info/RECORD +119 -0
- niwrap_mrtrix-0.5.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
# This file was auto generated by Styx.
|
|
2
|
+
# Do not edit this file directly.
|
|
3
|
+
|
|
4
|
+
import typing
|
|
5
|
+
import pathlib
|
|
6
|
+
from styxdefs import *
|
|
7
|
+
|
|
8
|
+
VOXEL2MESH_METADATA = Metadata(
|
|
9
|
+
id="61319a325faead4ced930defcbdd82b99a6a72af.boutiques",
|
|
10
|
+
name="voxel2mesh",
|
|
11
|
+
package="mrtrix",
|
|
12
|
+
container_image_tag="mrtrix3/mrtrix3:3.0.4",
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Voxel2meshConfigParameters = typing.TypedDict('Voxel2meshConfigParameters', {
|
|
17
|
+
"__STYX_TYPE__": typing.Literal["config"],
|
|
18
|
+
"key": str,
|
|
19
|
+
"value": str,
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
Voxel2meshParameters = typing.TypedDict('Voxel2meshParameters', {
|
|
24
|
+
"__STYX_TYPE__": typing.Literal["voxel2mesh"],
|
|
25
|
+
"blocky": bool,
|
|
26
|
+
"threshold": typing.NotRequired[float | None],
|
|
27
|
+
"info": bool,
|
|
28
|
+
"quiet": bool,
|
|
29
|
+
"debug": bool,
|
|
30
|
+
"force": bool,
|
|
31
|
+
"nthreads": typing.NotRequired[int | None],
|
|
32
|
+
"config": typing.NotRequired[list[Voxel2meshConfigParameters] | None],
|
|
33
|
+
"help": bool,
|
|
34
|
+
"version": bool,
|
|
35
|
+
"input": InputPathType,
|
|
36
|
+
"output": str,
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def dyn_cargs(
|
|
41
|
+
t: str,
|
|
42
|
+
) -> typing.Any:
|
|
43
|
+
"""
|
|
44
|
+
Get build cargs function by command type.
|
|
45
|
+
|
|
46
|
+
Args:
|
|
47
|
+
t: Command type.
|
|
48
|
+
Returns:
|
|
49
|
+
Build cargs function.
|
|
50
|
+
"""
|
|
51
|
+
return {
|
|
52
|
+
"voxel2mesh": voxel2mesh_cargs,
|
|
53
|
+
"config": voxel2mesh_config_cargs,
|
|
54
|
+
}.get(t)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def dyn_outputs(
|
|
58
|
+
t: str,
|
|
59
|
+
) -> typing.Any:
|
|
60
|
+
"""
|
|
61
|
+
Get build outputs function by command type.
|
|
62
|
+
|
|
63
|
+
Args:
|
|
64
|
+
t: Command type.
|
|
65
|
+
Returns:
|
|
66
|
+
Build outputs function.
|
|
67
|
+
"""
|
|
68
|
+
return {
|
|
69
|
+
"voxel2mesh": voxel2mesh_outputs,
|
|
70
|
+
}.get(t)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def voxel2mesh_config_params(
|
|
74
|
+
key: str,
|
|
75
|
+
value: str,
|
|
76
|
+
) -> Voxel2meshConfigParameters:
|
|
77
|
+
"""
|
|
78
|
+
Build parameters.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
key: temporarily set the value of an MRtrix config file entry.
|
|
82
|
+
value: temporarily set the value of an MRtrix config file entry.
|
|
83
|
+
Returns:
|
|
84
|
+
Parameter dictionary
|
|
85
|
+
"""
|
|
86
|
+
params = {
|
|
87
|
+
"__STYXTYPE__": "config",
|
|
88
|
+
"key": key,
|
|
89
|
+
"value": value,
|
|
90
|
+
}
|
|
91
|
+
return params
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
def voxel2mesh_config_cargs(
|
|
95
|
+
params: Voxel2meshConfigParameters,
|
|
96
|
+
execution: Execution,
|
|
97
|
+
) -> list[str]:
|
|
98
|
+
"""
|
|
99
|
+
Build command-line arguments from parameters.
|
|
100
|
+
|
|
101
|
+
Args:
|
|
102
|
+
params: The parameters.
|
|
103
|
+
execution: The execution object for resolving input paths.
|
|
104
|
+
Returns:
|
|
105
|
+
Command-line arguments.
|
|
106
|
+
"""
|
|
107
|
+
cargs = []
|
|
108
|
+
cargs.append("-config")
|
|
109
|
+
cargs.append(params.get("key"))
|
|
110
|
+
cargs.append(params.get("value"))
|
|
111
|
+
return cargs
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class Voxel2meshOutputs(typing.NamedTuple):
|
|
115
|
+
"""
|
|
116
|
+
Output object returned when calling `voxel2mesh(...)`.
|
|
117
|
+
"""
|
|
118
|
+
root: OutputPathType
|
|
119
|
+
"""Output root folder. This is the root folder for all outputs."""
|
|
120
|
+
output: OutputPathType
|
|
121
|
+
"""the output mesh file."""
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def voxel2mesh_params(
|
|
125
|
+
input_: InputPathType,
|
|
126
|
+
output: str,
|
|
127
|
+
blocky: bool = False,
|
|
128
|
+
threshold: float | None = None,
|
|
129
|
+
info: bool = False,
|
|
130
|
+
quiet: bool = False,
|
|
131
|
+
debug: bool = False,
|
|
132
|
+
force: bool = False,
|
|
133
|
+
nthreads: int | None = None,
|
|
134
|
+
config: list[Voxel2meshConfigParameters] | None = None,
|
|
135
|
+
help_: bool = False,
|
|
136
|
+
version: bool = False,
|
|
137
|
+
) -> Voxel2meshParameters:
|
|
138
|
+
"""
|
|
139
|
+
Build parameters.
|
|
140
|
+
|
|
141
|
+
Args:
|
|
142
|
+
input_: the input image.
|
|
143
|
+
output: the output mesh file.
|
|
144
|
+
blocky: generate a 'blocky' mesh that precisely represents the voxel\
|
|
145
|
+
edges.
|
|
146
|
+
threshold: manually set the intensity threshold for the Marching Cubes\
|
|
147
|
+
algorithm.
|
|
148
|
+
info: display information messages.
|
|
149
|
+
quiet: do not display information messages or progress status;\
|
|
150
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
151
|
+
environment variable to a non-empty string.
|
|
152
|
+
debug: display debugging messages.
|
|
153
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
154
|
+
input and output might cause unexpected behaviour).
|
|
155
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
156
|
+
(set to 0 to disable multi-threading).
|
|
157
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
158
|
+
help_: display this information page and exit.
|
|
159
|
+
version: display version information and exit.
|
|
160
|
+
Returns:
|
|
161
|
+
Parameter dictionary
|
|
162
|
+
"""
|
|
163
|
+
params = {
|
|
164
|
+
"__STYXTYPE__": "voxel2mesh",
|
|
165
|
+
"blocky": blocky,
|
|
166
|
+
"info": info,
|
|
167
|
+
"quiet": quiet,
|
|
168
|
+
"debug": debug,
|
|
169
|
+
"force": force,
|
|
170
|
+
"help": help_,
|
|
171
|
+
"version": version,
|
|
172
|
+
"input": input_,
|
|
173
|
+
"output": output,
|
|
174
|
+
}
|
|
175
|
+
if threshold is not None:
|
|
176
|
+
params["threshold"] = threshold
|
|
177
|
+
if nthreads is not None:
|
|
178
|
+
params["nthreads"] = nthreads
|
|
179
|
+
if config is not None:
|
|
180
|
+
params["config"] = config
|
|
181
|
+
return params
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def voxel2mesh_cargs(
|
|
185
|
+
params: Voxel2meshParameters,
|
|
186
|
+
execution: Execution,
|
|
187
|
+
) -> list[str]:
|
|
188
|
+
"""
|
|
189
|
+
Build command-line arguments from parameters.
|
|
190
|
+
|
|
191
|
+
Args:
|
|
192
|
+
params: The parameters.
|
|
193
|
+
execution: The execution object for resolving input paths.
|
|
194
|
+
Returns:
|
|
195
|
+
Command-line arguments.
|
|
196
|
+
"""
|
|
197
|
+
cargs = []
|
|
198
|
+
cargs.append("voxel2mesh")
|
|
199
|
+
if params.get("blocky"):
|
|
200
|
+
cargs.append("-blocky")
|
|
201
|
+
if params.get("threshold") is not None:
|
|
202
|
+
cargs.extend([
|
|
203
|
+
"-threshold",
|
|
204
|
+
str(params.get("threshold"))
|
|
205
|
+
])
|
|
206
|
+
if params.get("info"):
|
|
207
|
+
cargs.append("-info")
|
|
208
|
+
if params.get("quiet"):
|
|
209
|
+
cargs.append("-quiet")
|
|
210
|
+
if params.get("debug"):
|
|
211
|
+
cargs.append("-debug")
|
|
212
|
+
if params.get("force"):
|
|
213
|
+
cargs.append("-force")
|
|
214
|
+
if params.get("nthreads") is not None:
|
|
215
|
+
cargs.extend([
|
|
216
|
+
"-nthreads",
|
|
217
|
+
str(params.get("nthreads"))
|
|
218
|
+
])
|
|
219
|
+
if params.get("config") is not None:
|
|
220
|
+
cargs.extend([a for c in [dyn_cargs(s["__STYXTYPE__"])(s, execution) for s in params.get("config")] for a in c])
|
|
221
|
+
if params.get("help"):
|
|
222
|
+
cargs.append("-help")
|
|
223
|
+
if params.get("version"):
|
|
224
|
+
cargs.append("-version")
|
|
225
|
+
cargs.append(execution.input_file(params.get("input")))
|
|
226
|
+
cargs.append(params.get("output"))
|
|
227
|
+
return cargs
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
def voxel2mesh_outputs(
|
|
231
|
+
params: Voxel2meshParameters,
|
|
232
|
+
execution: Execution,
|
|
233
|
+
) -> Voxel2meshOutputs:
|
|
234
|
+
"""
|
|
235
|
+
Build outputs object containing output file paths and possibly stdout/stderr.
|
|
236
|
+
|
|
237
|
+
Args:
|
|
238
|
+
params: The parameters.
|
|
239
|
+
execution: The execution object for resolving input paths.
|
|
240
|
+
Returns:
|
|
241
|
+
Outputs object.
|
|
242
|
+
"""
|
|
243
|
+
ret = Voxel2meshOutputs(
|
|
244
|
+
root=execution.output_file("."),
|
|
245
|
+
output=execution.output_file(params.get("output")),
|
|
246
|
+
)
|
|
247
|
+
return ret
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def voxel2mesh_execute(
|
|
251
|
+
params: Voxel2meshParameters,
|
|
252
|
+
execution: Execution,
|
|
253
|
+
) -> Voxel2meshOutputs:
|
|
254
|
+
"""
|
|
255
|
+
Generate a surface mesh representation from a voxel image.
|
|
256
|
+
|
|
257
|
+
This command utilises the Marching Cubes algorithm to generate a polygonal
|
|
258
|
+
surface that represents the isocontour(s) of the input image at a particular
|
|
259
|
+
intensity. By default, an appropriate threshold will be determined
|
|
260
|
+
automatically from the input image, however the intensity value of the
|
|
261
|
+
isocontour(s) can instead be set manually using the -threhsold option.
|
|
262
|
+
|
|
263
|
+
If the -blocky option is used, then the Marching Cubes algorithm will not be
|
|
264
|
+
used. Instead, the input image will be interpreted as a binary mask image,
|
|
265
|
+
and polygonal surfaces will be generated at the outer faces of the voxel
|
|
266
|
+
clusters within the mask.
|
|
267
|
+
|
|
268
|
+
References:
|
|
269
|
+
|
|
270
|
+
.
|
|
271
|
+
|
|
272
|
+
Author: MRTrix3 Developers
|
|
273
|
+
|
|
274
|
+
URL: https://www.mrtrix.org/
|
|
275
|
+
|
|
276
|
+
Args:
|
|
277
|
+
params: The parameters.
|
|
278
|
+
execution: The execution object.
|
|
279
|
+
Returns:
|
|
280
|
+
NamedTuple of outputs (described in `Voxel2meshOutputs`).
|
|
281
|
+
"""
|
|
282
|
+
params = execution.params(params)
|
|
283
|
+
cargs = voxel2mesh_cargs(params, execution)
|
|
284
|
+
ret = voxel2mesh_outputs(params, execution)
|
|
285
|
+
execution.run(cargs)
|
|
286
|
+
return ret
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
def voxel2mesh(
|
|
290
|
+
input_: InputPathType,
|
|
291
|
+
output: str,
|
|
292
|
+
blocky: bool = False,
|
|
293
|
+
threshold: float | None = None,
|
|
294
|
+
info: bool = False,
|
|
295
|
+
quiet: bool = False,
|
|
296
|
+
debug: bool = False,
|
|
297
|
+
force: bool = False,
|
|
298
|
+
nthreads: int | None = None,
|
|
299
|
+
config: list[Voxel2meshConfigParameters] | None = None,
|
|
300
|
+
help_: bool = False,
|
|
301
|
+
version: bool = False,
|
|
302
|
+
runner: Runner | None = None,
|
|
303
|
+
) -> Voxel2meshOutputs:
|
|
304
|
+
"""
|
|
305
|
+
Generate a surface mesh representation from a voxel image.
|
|
306
|
+
|
|
307
|
+
This command utilises the Marching Cubes algorithm to generate a polygonal
|
|
308
|
+
surface that represents the isocontour(s) of the input image at a particular
|
|
309
|
+
intensity. By default, an appropriate threshold will be determined
|
|
310
|
+
automatically from the input image, however the intensity value of the
|
|
311
|
+
isocontour(s) can instead be set manually using the -threhsold option.
|
|
312
|
+
|
|
313
|
+
If the -blocky option is used, then the Marching Cubes algorithm will not be
|
|
314
|
+
used. Instead, the input image will be interpreted as a binary mask image,
|
|
315
|
+
and polygonal surfaces will be generated at the outer faces of the voxel
|
|
316
|
+
clusters within the mask.
|
|
317
|
+
|
|
318
|
+
References:
|
|
319
|
+
|
|
320
|
+
.
|
|
321
|
+
|
|
322
|
+
Author: MRTrix3 Developers
|
|
323
|
+
|
|
324
|
+
URL: https://www.mrtrix.org/
|
|
325
|
+
|
|
326
|
+
Args:
|
|
327
|
+
input_: the input image.
|
|
328
|
+
output: the output mesh file.
|
|
329
|
+
blocky: generate a 'blocky' mesh that precisely represents the voxel\
|
|
330
|
+
edges.
|
|
331
|
+
threshold: manually set the intensity threshold for the Marching Cubes\
|
|
332
|
+
algorithm.
|
|
333
|
+
info: display information messages.
|
|
334
|
+
quiet: do not display information messages or progress status;\
|
|
335
|
+
alternatively, this can be achieved by setting the MRTRIX_QUIET\
|
|
336
|
+
environment variable to a non-empty string.
|
|
337
|
+
debug: display debugging messages.
|
|
338
|
+
force: force overwrite of output files (caution: using the same file as\
|
|
339
|
+
input and output might cause unexpected behaviour).
|
|
340
|
+
nthreads: use this number of threads in multi-threaded applications\
|
|
341
|
+
(set to 0 to disable multi-threading).
|
|
342
|
+
config: temporarily set the value of an MRtrix config file entry.
|
|
343
|
+
help_: display this information page and exit.
|
|
344
|
+
version: display version information and exit.
|
|
345
|
+
runner: Command runner.
|
|
346
|
+
Returns:
|
|
347
|
+
NamedTuple of outputs (described in `Voxel2meshOutputs`).
|
|
348
|
+
"""
|
|
349
|
+
runner = runner or get_global_runner()
|
|
350
|
+
execution = runner.start_execution(VOXEL2MESH_METADATA)
|
|
351
|
+
params = voxel2mesh_params(
|
|
352
|
+
blocky=blocky,
|
|
353
|
+
threshold=threshold,
|
|
354
|
+
info=info,
|
|
355
|
+
quiet=quiet,
|
|
356
|
+
debug=debug,
|
|
357
|
+
force=force,
|
|
358
|
+
nthreads=nthreads,
|
|
359
|
+
config=config,
|
|
360
|
+
help_=help_,
|
|
361
|
+
version=version,
|
|
362
|
+
input_=input_,
|
|
363
|
+
output=output,
|
|
364
|
+
)
|
|
365
|
+
return voxel2mesh_execute(params, execution)
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
__all__ = [
|
|
369
|
+
"VOXEL2MESH_METADATA",
|
|
370
|
+
"Voxel2meshConfigParameters",
|
|
371
|
+
"Voxel2meshOutputs",
|
|
372
|
+
"Voxel2meshParameters",
|
|
373
|
+
"voxel2mesh",
|
|
374
|
+
"voxel2mesh_config_params",
|
|
375
|
+
"voxel2mesh_params",
|
|
376
|
+
]
|