Skip to content

Commit fe0b9ef

Browse files
committed
ADC calculation
1 parent 99a2f4d commit fe0b9ef

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

sigpy/mri/epi.py

+16
Original file line numberDiff line numberDiff line change
@@ -330,3 +330,19 @@ def get_KT(D, B=None):
330330
MD = get_MD(eigvals)
331331

332332
return DK / (MD**2)
333+
334+
335+
def get_ADC(D):
336+
"""Compute the apparent diffusion coefficient (ADC) map
337+
338+
Args:
339+
D (array): diffusion tensor
340+
341+
Output:
342+
ADC (array): ADC map
343+
"""
344+
Dxx = D[0, ...]
345+
Dyy = D[2, ...]
346+
Dzz = D[5, ...]
347+
348+
return (Dxx + Dyy + Dzz) / 3

0 commit comments

Comments
 (0)