3aeca23cf4fd4cd752039b17120467544b05c283,nilearn/image/resampling.py,,resample_img,#Any#Any#Any#Any#Any#Any#,130
Before Change
// We need to do a copy to avoid modifying the input
// array
data = data.copy()
data[not_finite] = 0
resampled_data = ndimage.affine_transform(data, A,
offset=np.dot(A_inv, b),
output_shape=target_shape,
order=interpolation_order)
After Change
// array
img = img.copy()
from ..masking import _extrapolate_out_mask
img = _extrapolate_out_mask(img, np.logical_not(not_finite),
iterations=2)[0]
// The resampling itself
resampled_data[all_img + ind] = \
ndimage.affine_transform(img, A,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: nilearn/nilearn
Commit Name: 3aeca23cf4fd4cd752039b17120467544b05c283
Time: 2014-05-16
Author: gael.varoquaux@normalesup.org
File Name: nilearn/image/resampling.py
Class Name:
Method Name: resample_img
Project Name: dmlc/dgl
Commit Name: e19cd62ecdd14097926e707bf854360b8ee9862e
Time: 2019-01-05
Author: coin2028@hotmail.com
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: incidence_matrix
Project Name: nilearn/nilearn
Commit Name: cfba4f7c496a43d711883bf4d94e8d4f7ed84075
Time: 2012-06-28
Author: abraham.alexandre@gmail.com
File Name: plot_haxby_searchlight.py
Class Name:
Method Name: