Commit 9fa19a53 authored by Simon Maretzke's avatar Simon Maretzke
Browse files

floor and ceil seems wrong here (see documentation astra_create_vol_geom)

parent ab34f770
Pipeline #100811 passed with stage
in 1 minute and 26 seconds
......@@ -156,8 +156,8 @@ end
% coordinate in y, minimum coordinate in z, maximum coordinate in z
volGeom = astra_create_vol_geom(settings.outputSize, settings.outputSize, ...
settings.numSlices, -settings.outputSize/2, settings.outputSize/2, ...
-settings.outputSize/2, settings.outputSize/2, settings.offset - floor(settings.numSlices/2), ...
settings.offset + ceil(settings.numSlices/2));
-settings.outputSize/2, settings.outputSize/2, settings.offset - settings.numSlices/2, ...
settings.offset + settings.numSlices/2);
% create initial volume for the reconstruction
volID = astra_mex_data3d('create', '-vol', volGeom);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment