@@ -153,8 +153,10 @@ def main():
153153 '(requires --denoise to generate a noisemap).' )
154154 parser .add_argument ('--nofit' , action = 'store_true' , default = False ,
155155 help = 'Do not fit DTI or DKI tensors.' )
156- parser .add_argument ('--noakc' , action = 'store_true' , default = False ,
157- help = 'Do not brute force K tensor outlier rejection.' )
156+ parser .add_argument ('--akc' , action = 'store_true' , default = False ,
157+ help = 'Brute force K tensor outlier rejection. Applies '
158+ 'a median filter to tensor voxels that exhibit AKC '
159+ 'values of less than 2 and more than 10.' )
158160 parser .add_argument ('--nooutliers' , action = 'store_true' , default = False ,
159161 help = 'Do not perform outlier correction on kurtosis '
160162 'fitting metrics.' )
@@ -322,7 +324,7 @@ def main():
322324 # Can't do WMTI if no fit
323325 if args .nofit :
324326 stdmsg = '--nofit given but '
325- if args .noakc :
327+ if not args .akc :
326328 warningmsg += msgstart + stdmsg + '--noakc' + override + 'tensor fitting.\n '
327329 args .nofit = False
328330 if args .nooutliers :
@@ -949,7 +951,7 @@ def main():
949951 suffix = None ,
950952 ext = ext ,
951953 irlls = not args .nooutliers ,
952- akc = not args .noakc ,
954+ akc = args .akc ,
953955 l_max = args .l_max ,
954956 res = args .t_res ,
955957 n_fibers = args .t_fibers ,
@@ -967,7 +969,7 @@ def main():
967969 suffix = None ,
968970 ext = ext ,
969971 irlls = not args .nooutliers ,
970- akc = not args .noakc ,
972+ akc = args .akc ,
971973 l_max = args .l_max ,
972974 rectify = fbi_rectify ,
973975 res = args .t_res ,
0 commit comments