Diffusion gradient information
Parameters: | gradients : array_like (N, 3)
b0_threshold : float
|
---|
See also
Attributes
bvals() | |
bvecs() | |
b0s_mask() |
Methods
b0s_mask() | |
bvals() | |
bvecs() |
A general function for creating diffusion MR gradients.
It reads, loads and prepares scanner parameters like the b-values and b-vectors so that they can be useful during the reconstruction process.
Parameters: | bvals : can be any of the four options
bvecs : can be any of two options
big_delta : float
small_delta : float
b0_threshold : float
atol : float
|
---|---|
Returns: | gradients : GradientTable
|
Notes
Examples
>>> from dipy.core.gradients import gradient_table
>>> bvals=1500*np.ones(7)
>>> bvals[0]=0
>>> sq2=np.sqrt(2)/2
>>> bvecs=np.array([[0, 0, 0],
... [1, 0, 0],
... [0, 1, 0],
... [0, 0, 1],
... [sq2, sq2, 0],
... [sq2, 0, sq2],
... [0, sq2, sq2]])
>>> gt = gradient_table(bvals, bvecs)
>>> gt.bvecs.shape == bvecs.shape
True
>>> gt = gradient_table(bvals, bvecs.T)
>>> gt.bvecs.shape == bvecs.T.shape
False
Creates a GradientTable from a bvals array and a bvecs array
Parameters: | bvals : array_like (N,)
bvecs : array_like (N, 3)
b0_threshold : float
atol : float
|
---|---|
Returns: | gradients : GradientTable
|
Other Parameters: | |
**kwargs : dict
|
See also