Skip to content
Snippets Groups Projects
Commit 4edac54f authored by Nicola Vigano's avatar Nicola Vigano
Browse files

6D-reconstruction: changed rounding for volume size determination

parent 11eadc0f
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ classdef Gt6DReconstructionAlgorithmFactory < handle
proj = ref_gr.proj(self.det_index);
spacing = mean([proj.vol_size_y, proj.vol_size_x, proj.vol_size_z]) * (self.rspace_oversize - 1);
volume_size = round([proj.vol_size_y, proj.vol_size_x, proj.vol_size_z] + spacing);
volume_size = ceil([proj.vol_size_y, proj.vol_size_x, proj.vol_size_z] + spacing);
if (self.volume_downscaling > 1)
volume_size = ceil(volume_size / self.volume_downscaling);
......@@ -96,7 +96,7 @@ classdef Gt6DReconstructionAlgorithmFactory < handle
proj = ref_gr.proj(self.det_index);
spacing = mean([proj.vol_size_y, proj.vol_size_x, proj.vol_size_z]) * (self.rspace_oversize - 1);
volume_size = round([proj.vol_size_y, proj.vol_size_x, proj.vol_size_z] + spacing);
volume_size = ceil([proj.vol_size_y, proj.vol_size_x, proj.vol_size_z] + spacing);
if (self.volume_downscaling > 1)
volume_size = ceil(volume_size / self.volume_downscaling);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment