Skip to content

Commit

Permalink
update RK calculation to be the same as matlab
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Aron committed Mar 22, 2024
1 parent d2fcb9c commit a0c306a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added constant/dirs256.mat
Binary file not shown.
6 changes: 5 additions & 1 deletion lib/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ def extract_parameters(self, dt, b, mask, extract_dti, extract_dki, fit_w=False)
parameters['trace'] = trace

if extract_dki:
dirs = np.array(self.fibonacci_sphere(256, True))
#dirs = np.array(self.fibonacci_sphere(256, True))
dwd = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
mat = sio.loadmat(os.path.join(dwd,'constant','dirs256.mat'))
dirs = mat['dirs']


if fit_w:
akc = self.w_kurtosis_coeff(dt, dirs)
Expand Down

0 comments on commit a0c306a

Please sign in to comment.