Using output of nipype Imagestats and convert to list/array?

Dear experts,
i would like to get the center of gravity coordinates using nipype’s FSL interface and Imagestats. This works fine so farstats=ImageStats(in_file=‘X_hyp_re.nii’, op_string=’-C’)
stats.cmdline
s=stats.run()
but unfortunately the three voxel-coordinates I get as output are not accessible to me afterwards (i would like to use them to define the edge of two ROIs)
I would be very happy if anyone could give me a hint on how to further use the information given by ImageStats!
Many thanks
Frauke

1 Like