You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dwi/gradient.cpp
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -117,8 +117,9 @@ namespace MR
117
117
if (bvals.cols() != bvecs.cols())
118
118
throwException ("bvecs and bvals files must have same number of diffusion directions (file \"" + bvecs_path + "\" has " + str(bvecs.cols()) + ", file \"" + bvals_path + "\" has " + str(bvals.cols()) + ")");
119
119
120
-
if (bvals.cols() != header.size (3))
121
-
throwException ("bvecs and bvals files must have same number of diffusion directions as DW-image (gradients: " + str(bvecs.cols()) + ", image: " + str(header.size(3)) + ")");
throwException ("bvecs and bvals files must have same number of diffusion directions as DW-image (gradients: " + str(bvecs.cols()) + ", image: " + str(num_volumes) + ")");
122
123
123
124
// bvecs format actually assumes a LHS coordinate system even if image is
124
125
// stored using RHS - x axis is flipped to make linear 3x3 part of
0 commit comments