Skip to content

Commit

Permalink
invert order of interpolation and kind in vol_to_surf signature
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromedockes committed Nov 19, 2017
1 parent 4cca98a commit ed78a66
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions nilearn/surface/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def _interpolation_sampling(images, mesh, affine, kind='ball', radius=3,


def vol_to_surf(img, surf_mesh,
radius=3., kind='line', interpolation='linear',
radius=3., interpolation='linear', kind='line',
n_samples=None, mask_img=None):
"""Extract surface data from a Nifti image.
Expand All @@ -406,6 +406,14 @@ def vol_to_surf(img, surf_mesh,
The size (in mm) of the neighbourhood from which samples are drawn
around each node.
interpolation : {'linear', 'nearest'}
How the image intensity is measured at a sample point.
- 'linear' (the default):
Use a trilinear interpolation of neighboring voxels.
- 'nearest':
Use the intensity of the nearest voxel.
kind : {'line', 'ball'}
The strategy used to sample image intensities around each vertex.
Expand All @@ -417,14 +425,6 @@ def vol_to_surf(img, surf_mesh,
samples are regularly spaced inside a ball centered at the mesh
vertex.
interpolation : {'linear', 'nearest'}
How the image intensity is measured at a sample point.
- 'linear' (the default):
Use a trilinear interpolation of neighboring voxels.
- 'nearest':
Use the intensity of the nearest voxel.
n_samples : int or None, optional (default=None)
How many samples are drawn around each vertex and averaged. If
``None``, use a reasonable default for the chosen sampling strategy
Expand Down

0 comments on commit ed78a66

Please sign in to comment.