990702bedcfd4bfd62b3c96f82a26fd8e1b6354a,dipy/segment/mask.py,,segment_from_cfa,#Any#Any#Any#,226
Before Change
if len(threshold) != 6:
raise ValueError("threshold must be of length 6")
if (np.min(threshold) < 0 or np.max(threshold) > 1):
raise ValueError("threshold must be between 0 and 1")
if (np.min(cfa) < 0 or np.max(cfa) > 1):
After Change
Binary mask of the segmentation.
FA = fractional_anisotropy(tensorfit.evals)
FA[np.isnan(FA) ] = 0
FA = np.clip(FA, 0, 1) // Clamp the FA to remove degenerate tensors
cfa = color_fa(FA, tensorfit.evecs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: nipy/dipy
Commit Name: 990702bedcfd4bfd62b3c96f82a26fd8e1b6354a
Time: 2013-09-11
Author: Samuel.St-Jean@usherbrooke.ca
File Name: dipy/segment/mask.py
Class Name:
Method Name: segment_from_cfa
Project Name: nipy/dipy
Commit Name: a9fa0782dc1df24bd3e9c9ee9ddd3ab1dc9fd5e0
Time: 2013-09-11
Author: Samuel.St-Jean@usherbrooke.ca
File Name: dipy/segment/mask.py
Class Name:
Method Name: segment_from_cfa
Project Name: calico/basenji
Commit Name: 517a35022a2b26d10253f6b3901a6f099cc74cc7
Time: 2019-06-22
Author: geoff.fudenberg@gmail.com
File Name: bin/basenji_data_4C_read.py
Class Name:
Method Name: main