@@ -445,15 +445,15 @@ class FuzzyOverlapInputSpec(BaseInterfaceInputSpec):
445
445
weighting = traits .Enum ("none" , "volume" , "squared_vol" , desc = '""none": no class-overlap weighting is performed\
446
446
"volume": computed class-overlaps are weighted by class volume\
447
447
"squared_vol": computed class-overlaps are weighted by the squared volume of the class' ,usedefault = True )
448
- out_file = File ("diff.nii" , usedefault = True )
448
+ out_file = File ("diff.nii" , desc = "alternative name for resulting difference-map" , usedefault = True )
449
449
450
450
451
451
class FuzzyOverlapOutputSpec (TraitedSpec ):
452
- jaccard = traits .Float ()
453
- dice = traits .Float ()
454
- diff_file = File (exists = True )
455
- class_ji = traits .List ( traits .Float () )
456
- class_dsc = traits .List ( traits .Float () )
452
+ jaccard = traits .Float ( desc = "Fuzzy Jaccard Index (fJI), all the classes" )
453
+ dice = traits .Float ( desc = "Fuzzy Dice Index (fDI), all the classes" )
454
+ diff_file = File (exists = True , desc = "resulting difference-map of all classes, using the chosen weighting" )
455
+ class_fji = traits .List ( traits .Float (), desc = "Array containing the fJIs of each computed class" )
456
+ class_fdi = traits .List ( traits .Float (), desc = "Array containing the fDIs of each computed class" )
457
457
458
458
459
459
class FuzzyOverlap (BaseInterface ):
@@ -539,8 +539,8 @@ def _list_outputs(self):
539
539
outputs [method ] = getattr (self , '_' + method )
540
540
#outputs['volume_difference'] = self._volume
541
541
outputs ['diff_file' ] = os .path .abspath (self .inputs .out_file )
542
- outputs ['class_ji ' ] = np .array (self ._jaccards ).astype (float ).tolist ();
543
- outputs ['class_dsc ' ]= self ._dices .astype (float ).tolist ();
542
+ outputs ['class_fji ' ] = np .array (self ._jaccards ).astype (float ).tolist ();
543
+ outputs ['class_fdi ' ]= self ._dices .astype (float ).tolist ();
544
544
return outputs
545
545
546
546
0 commit comments