2b0a3cd34edf87da4828592052b1e889f76d09c4,nilearn/image/image.py,,_compute_mean,#Any#Any#Any#Any#Any#,299
Before Change
mean_img = _smooth_array(mean_img, affine=np.eye(4), fwhm=smooth,
ensure_finite=True, copy=False)
mean_img[nan_mask] = np.nan
return mean_img, imgs.get_affine()
def mean_img(niimgs, target_affine=None, target_shape=None,
verbose=False, memory=None, n_jobs=1):
After Change
if mean_img.ndim == 4:
mean_img = mean_img.mean(axis=-1)
mean_img = cache(resampling.resample_img, memory)(
nibabel.Nifti1Image(mean_img, imgs.get_affine()),
target_affine=target_affine, target_shape=target_shape)
affine = mean_img.get_affine()
mean_img = mean_img.get_data()
if smooth:
nan_mask = np.isnan(mean_img)
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 3
Instances
Project Name: nilearn/nilearn
Commit Name: 2b0a3cd34edf87da4828592052b1e889f76d09c4
Time: 2014-04-22
Author: gael.varoquaux@normalesup.org
File Name: nilearn/image/image.py
Class Name:
Method Name: _compute_mean
Project Name: nilearn/nilearn
Commit Name: 6bfdb5ef288e2d30b57f7a5c757f6aef97803356
Time: 2015-08-05
Author: abraham.alexandre@gmail.com
File Name: nilearn/input_data/nifti_maps_masker.py
Class Name: NiftiMapsMasker
Method Name: transform
Project Name: nilearn/nilearn
Commit Name: dcc3833c98763bd41f947c26ed7964e2d67eaf70
Time: 2017-03-01
Author: ahoyosidrobo@gmail.com
File Name: nilearn/_utils/param_validation.py
Class Name:
Method Name: _get_mask_volume
Project Name: nilearn/nilearn
Commit Name: c555608dbd57d7549c78e67210d423396f3a7d12
Time: 2017-03-01
Author: ahoyosidrobo@gmail.com
File Name: nilearn/_utils/param_validation.py
Class Name:
Method Name: _get_mask_volume
Project Name: nilearn/nilearn
Commit Name: 9d92eb3217361730f9a60e344e436070b4d8c786
Time: 2015-07-28
Author: gael.varoquaux@normalesup.org
File Name: nilearn/image/image.py
Class Name:
Method Name: _compute_mean
Project Name: nilearn/nilearn
Commit Name: 1adf6bb44e1897757464394bcf7502de30278b16
Time: 2015-04-20
Author: abraham.alexandre@gmail.com
File Name: nilearn/_utils/niimg_conversions.py
Class Name:
Method Name: _iter_check_niimg
Project Name: nilearn/nilearn
Commit Name: 1a550aba79140b00b4175294d584e82577344351
Time: 2017-02-28
Author: ahoyosidrobo@gmail.com
File Name: nilearn/_utils/param_validation.py
Class Name:
Method Name: _get_mask_volume
Project Name: nilearn/nilearn
Commit Name: 6bfdb5ef288e2d30b57f7a5c757f6aef97803356
Time: 2015-08-05
Author: abraham.alexandre@gmail.com
File Name: nilearn/input_data/nifti_labels_masker.py
Class Name: NiftiLabelsMasker
Method Name: transform