From 91c4eb87094b1f8f2b564bf27001587a7051ab18 Mon Sep 17 00:00:00 2001 From: Eric Wait <eric@waitphoto.com> Date: Tue, 8 Aug 2017 15:26:23 -0400 Subject: [PATCH] Fixed bug with physical voxel size. Was reading r,c instead of x,y --- src/c/Mex/MexInitVolume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/Mex/MexInitVolume.cpp b/src/c/Mex/MexInitVolume.cpp index dfb00e1..65a58cc 100644 --- a/src/c/Mex/MexInitVolume.cpp +++ b/src/c/Mex/MexInitVolume.cpp @@ -29,7 +29,7 @@ void MexInitVolume::execute(int nlhs, mxArray* plhs[], int nrhs, const mxArray* { // TODO: Should look over this and verify it's right for x-y anisotropy! double* physData = (double*)mxGetData(prhs[1]); - physVoxel = Vec<float>(physData[1], physData[0], physData[2]); + physVoxel = Vec<float>(physData[0], physData[1], physData[2]); } // Compute total volume size in physical units -- GitLab