dipy logo

Site Navigation

NIPY Community

dipy.reconst.odf

class dipy.reconst.odf.OdfModel(gtab)

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(data) To be implemented by specific odf models
fit(data)

To be implemented by specific odf models

dipy.reconst.odf.gfa(samples)

The general fractional anisotropy of a function evaluated on the unit sphere

dipy.reconst.odf.minmax_normalize(samples, out=None)

Min-max normalization of a function evaluated on the unit sphere

Normalizes samples to (samples - min(samples)) / (max(samples) - min(samples)) for each unit sphere.

Parameters :

samples : ndarray (..., N)

N samples on a unit sphere for each point, stored along the last axis of the array.

out : ndrray (..., N), optional

An array to store the normalized samples.

Returns :

out : ndarray, (..., N)

Normalized samples.