An abstract class to be sub-classed by specific odf models
All odf models should provide a fit method which may take data as it’s first and only argument.
Methods
fit |
To be implemented by specific odf models
The general fractional anisotropy of a function evaluated on the unit sphere
Get the directions of odf peaks
Parameters : | odf : 1d ndarray
sphere : Sphere
relative_peak_threshold : float
min_separation_angle : float in [0, 90] The minimum distance between
|
---|---|
Returns : | directions : (N, 3) ndarray
values : (N,) ndarray
indices : (N,) ndarray
|
Non Linear Direction Finder
Parameters : | sphere_eval : callable
relative_peak_threshold : float
min_separation_angle : float in [0, 90]
sphere : Sphere
xtol : float
|
---|---|
Returns : | directions : array (N, 3)
values : array (N,)
|
Fits the model to data and computes peaks and metrics
Parameters : | model : a model instance
sphere : Sphere
relative_peak_threshold : float
min_separation_angle : float in [0, 90] The minimum distance between
mask : array, optional
return_odf : bool
gfa_thr : float
normalize_peaks : bool
|
---|