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
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