diff --git a/gradunwarp/core/unwarp_resample.py b/gradunwarp/core/unwarp_resample.py index 330a1ac..ef8196d 100644 --- a/gradunwarp/core/unwarp_resample.py +++ b/gradunwarp/core/unwarp_resample.py @@ -71,7 +71,7 @@ def eval_spharm_grid(self, vendor, coeffs): vec = np.linspace(fovmin, fovmax, numpoints) gvx, gvy, gvz = np.meshgrid(vec, vec, vec) # mm - cf = (fovmax - fovmin) / numpoints + cf = (fovmax - fovmin) / (numpoints - 1) # deduce the transformation from rcs to grid g_rcs2xyz = np.array( [[0, cf, 0, fovmin],