Skip to content

Commit b639ee9

Browse files
author
IvanARashid
committed
Normalize the signal to the minimum b-value, not an explicit b0
1 parent 06ebb05 commit b639ee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wrappers/OsipiBase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def osipi_fit_full_volume(self, data, bvalues=None, **kwargs):
146146
for key in self.result_keys:
147147
results[key] = np.empty(list(data.shape[:-1]))
148148

149-
b0_indices = np.where(use_bvalues == 0)[0]
149+
minimum_bvalue = np.min(use_bvalues) # We normalize the signal to the minimum bvalue. Should be 0 or very close to 0.
150+
b0_indices = np.where(use_bvalues == minimum_bvalue)[0]
150151
b0_mean = np.mean(data[..., b0_indices], axis=-1)
151152

152153
normalization_factors = np.array([b0_mean for i in range(data.shape[-1])])

0 commit comments

Comments
 (0)