Tweak find_xyz_cut_coords to take an niimg as argument and return world (rather than voxel) coordinates

Fixes #234 
Indeed. Or even better "brain map" as the function is generic and not only for statistical maps. 

<div>-------- Original message --------</div><div>From: bthirion <notifications@github.com> </div><div>Date:12/09/2014  08:28  (GMT+01:00) </div><div>To: nilearn/nilearn <nilearn@noreply.github.com> </div><div>Cc: Gael Varoquaux <gael.varoquaux@normalesup.org> </div><div>Subject: Re: [nilearn] Tweak find_xyz_cut_coords to take an niimg as argument  and return world (rather than voxel) coordinates (#236) </div><div>
</div>In nilearn/plotting/find_cuts.py:

>      """ Find the center of the largest activation connected component.
>  
>          Parameters
>          -----------
> -        data : 3D ndarray
> -            The activation map, as a 3D numpy array.
> +        img : 3D Nifti1Image
> +            The activation map data.
Maybe: The statistical map to be displayed

—
Reply to this email directly or view it on GitHub.