99d24ca854659043651cc1ca4e83a3621deffd2d,nilearn/plotting/img_plotting.py,,_load_anat,#Any#Any#Any#,263
Before Change
// Guess if the background is rather black or light based on
// the values of voxels near the border
border_size = 2
border_data = np.concatenate([
data[:border_size, :, :].ravel(),
data[-border_size:, :, :].ravel(),
data[:, :border_size, :].ravel(),
data[:, -border_size:, :].ravel(),
data[:, :, :border_size].ravel(),
data[:, :, -border_size:].ravel(),
])
background = np.median(border_data)
if background > .5 * (vmin + vmax):
black_bg = False
else:
After Change
if black_bg == "auto":
// Guess if the background is rather black or light based on
// the values of voxels near the border
background = np.median(get_border_data(data, 2))
if background > .5 * (vmin + vmax):
black_bg = False
else:
black_bg = True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: nilearn/nilearn
Commit Name: 99d24ca854659043651cc1ca4e83a3621deffd2d
Time: 2015-05-11
Author: abraham.alexandre@gmail.com
File Name: nilearn/plotting/img_plotting.py
Class Name:
Method Name: _load_anat
Project Name: danforthcenter/plantcv
Commit Name: 533ff301b693aaae8d0e525bafc4d83101fe0d13
Time: 2019-04-11
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/analyze_color.py
Class Name:
Method Name: analyze_color
Project Name: kwgoodman/numerox
Commit Name: f4f853044babbcaea98da946b106fcf84e8ef79b
Time: 2018-04-27
Author: kwgoodman@gmail.com
File Name: numerox/report.py
Class Name:
Method Name: big_staker