pnlbwh / ukftractography

Other
25 stars 27 forks source link

mf must be transposed after reading #135

Closed tashrifbillah closed 4 years ago

tashrifbillah commented 4 years ago

The Nrrd structure stores the measurement frame vector[i] as row[i] in its measurementFrame array So it must be transposed before applying to gradients Note that gradients_ras = measurement_frame * gradients_xyz Other than transposing later, read as (i,j)<--[j][i] in one step

Fixes #134

tashrifbillah commented 4 years ago

The only, yet phenomenal, change is:

measurement_frame(i, j) = _data_nrrd->measurementFrame[j][i]

which used to be [i][j] on the right.

Thank you @yrathi .

tashrifbillah commented 4 years ago

Rebuild required in--