@@ -334,106 +334,6 @@ class CiftiCreateDenseTimeseries(WBCommand):
334
334
_cmd = "wb_command -cifti-create-dense-timeseries"
335
335
336
336
337
- class CiftiDilateInputSpec (CommandLineInputSpec ):
338
- in_file = File (
339
- exists = True ,
340
- mandatory = True ,
341
- argstr = "%s" ,
342
- position = 0 ,
343
- desc = "The input CIFTI file" ,
344
- )
345
- direction = traits .Enum (
346
- "ROW" ,
347
- "COLUMN" ,
348
- mandatory = True ,
349
- argstr = "%s" ,
350
- position = 1 ,
351
- desc = "Which dimension to dilate along, ROW or COLUMN" ,
352
- )
353
- surface_distance = traits .Int (
354
- mandatory = True ,
355
- argstr = "%d" ,
356
- position = 2 ,
357
- desc = "The distance to dilate on surfaces, in mm" ,
358
- )
359
- volume_distance = traits .Int (
360
- mandatory = True ,
361
- argstr = "%d" ,
362
- position = 3 ,
363
- desc = "The distance to dilate in the volume, in mm" ,
364
- )
365
- out_file = File (
366
- name_source = ["in_file" ],
367
- name_template = "dilated_%s.nii" ,
368
- keep_extension = True ,
369
- argstr = "%s" ,
370
- position = 4 ,
371
- desc = "The dilated CIFTI file" ,
372
- )
373
- left_surface = File (
374
- exists = True ,
375
- position = 5 ,
376
- argstr = "-left-surface %s" ,
377
- desc = "Specify the left surface to use" ,
378
- )
379
- left_corrected_areas = File (
380
- exists = True ,
381
- position = 6 ,
382
- requires = ["left_surface" ],
383
- argstr = "-left-corrected-areas %s" ,
384
- desc = "vertex areas (as a metric) to use instead of computing them from the left surface." ,
385
- )
386
- right_surface = File (
387
- exists = True ,
388
- position = 7 ,
389
- argstr = "-right-surface %s" ,
390
- desc = "Specify the right surface to use" ,
391
- )
392
- right_corrected_areas = File (
393
- exists = True ,
394
- position = 8 ,
395
- requires = ["right_surface" ],
396
- argstr = "-right-corrected-areas %s" ,
397
- desc = "vertex areas (as a metric) to use instead of computing them from the right surface" ,
398
- )
399
- cerebellum_surface = File (
400
- exists = True ,
401
- position = 9 ,
402
- argstr = "-cerebellum-surface %s" ,
403
- desc = "specify the cerebellum surface to use" ,
404
- )
405
- cerebellum_corrected_areas = File (
406
- exists = True ,
407
- position = 10 ,
408
- requires = ["cerebellum_surface" ],
409
- argstr = "-cerebellum-corrected-areas %s" ,
410
- desc = "vertex areas (as a metric) to use instead of computing them from the cerebellum "
411
- "surface" ,
412
- )
413
- bad_brainordinate_roi = File (
414
- exists = True ,
415
- position = 11 ,
416
- argstr = "-bad-brainordinate-roi %s" ,
417
- desc = "CIFTI dscalar or dtseries file, positive values denote brainordinates to have their "
418
- "values replaced" ,
419
- )
420
- nearest = traits .Bool (
421
- position = 12 ,
422
- argstr = "-nearest" ,
423
- desc = "Use nearest good value instead of a weighted average" ,
424
- )
425
- merged_volume = traits .Bool (
426
- position = 13 ,
427
- argstr = "-merged-volume" ,
428
- desc = "treat volume components as if they were a single component" ,
429
- )
430
- legacy_mode = traits .Bool (
431
- position = 14 ,
432
- argstr = "-legacy-mode" ,
433
- desc = "Use the math from v1.3.2 and earlier for weighted dilation" ,
434
- )
435
-
436
-
437
337
class CiftiCreateLabelInputSpec (CommandLineInputSpec ):
438
338
out_file = File (
439
339
value = "dlabel.nii" ,
@@ -565,6 +465,106 @@ class CiftiCreateLabel(WBCommand):
565
465
_cmd = "wb_command -cifti-create-label"
566
466
567
467
468
+ class CiftiDilateInputSpec (CommandLineInputSpec ):
469
+ in_file = File (
470
+ exists = True ,
471
+ mandatory = True ,
472
+ argstr = "%s" ,
473
+ position = 0 ,
474
+ desc = "The input CIFTI file" ,
475
+ )
476
+ direction = traits .Enum (
477
+ "ROW" ,
478
+ "COLUMN" ,
479
+ mandatory = True ,
480
+ argstr = "%s" ,
481
+ position = 1 ,
482
+ desc = "Which dimension to dilate along, ROW or COLUMN" ,
483
+ )
484
+ surface_distance = traits .Int (
485
+ mandatory = True ,
486
+ argstr = "%d" ,
487
+ position = 2 ,
488
+ desc = "The distance to dilate on surfaces, in mm" ,
489
+ )
490
+ volume_distance = traits .Int (
491
+ mandatory = True ,
492
+ argstr = "%d" ,
493
+ position = 3 ,
494
+ desc = "The distance to dilate in the volume, in mm" ,
495
+ )
496
+ out_file = File (
497
+ name_source = ["in_file" ],
498
+ name_template = "dilated_%s.nii" ,
499
+ keep_extension = True ,
500
+ argstr = "%s" ,
501
+ position = 4 ,
502
+ desc = "The dilated CIFTI file" ,
503
+ )
504
+ left_surface = File (
505
+ exists = True ,
506
+ position = 5 ,
507
+ argstr = "-left-surface %s" ,
508
+ desc = "Specify the left surface to use" ,
509
+ )
510
+ left_corrected_areas = File (
511
+ exists = True ,
512
+ position = 6 ,
513
+ requires = ["left_surface" ],
514
+ argstr = "-left-corrected-areas %s" ,
515
+ desc = "vertex areas (as a metric) to use instead of computing them from the left surface." ,
516
+ )
517
+ right_surface = File (
518
+ exists = True ,
519
+ position = 7 ,
520
+ argstr = "-right-surface %s" ,
521
+ desc = "Specify the right surface to use" ,
522
+ )
523
+ right_corrected_areas = File (
524
+ exists = True ,
525
+ position = 8 ,
526
+ requires = ["right_surface" ],
527
+ argstr = "-right-corrected-areas %s" ,
528
+ desc = "vertex areas (as a metric) to use instead of computing them from the right surface" ,
529
+ )
530
+ cerebellum_surface = File (
531
+ exists = True ,
532
+ position = 9 ,
533
+ argstr = "-cerebellum-surface %s" ,
534
+ desc = "specify the cerebellum surface to use" ,
535
+ )
536
+ cerebellum_corrected_areas = File (
537
+ exists = True ,
538
+ position = 10 ,
539
+ requires = ["cerebellum_surface" ],
540
+ argstr = "-cerebellum-corrected-areas %s" ,
541
+ desc = "vertex areas (as a metric) to use instead of computing them from the cerebellum "
542
+ "surface" ,
543
+ )
544
+ bad_brainordinate_roi = File (
545
+ exists = True ,
546
+ position = 11 ,
547
+ argstr = "-bad-brainordinate-roi %s" ,
548
+ desc = "CIFTI dscalar or dtseries file, positive values denote brainordinates to have their "
549
+ "values replaced" ,
550
+ )
551
+ nearest = traits .Bool (
552
+ position = 12 ,
553
+ argstr = "-nearest" ,
554
+ desc = "Use nearest good value instead of a weighted average" ,
555
+ )
556
+ merged_volume = traits .Bool (
557
+ position = 13 ,
558
+ argstr = "-merged-volume" ,
559
+ desc = "treat volume components as if they were a single component" ,
560
+ )
561
+ legacy_mode = traits .Bool (
562
+ position = 14 ,
563
+ argstr = "-legacy-mode" ,
564
+ desc = "Use the math from v1.3.2 and earlier for weighted dilation" ,
565
+ )
566
+
567
+
568
568
class CiftiDilateOutputSpec (TraitedSpec ):
569
569
out_file = File (exists = True , desc = "Dilated CIFTI file" )
570
570
0 commit comments