Skip to content

Commit

Permalink
Small fix for 2D data
Browse files Browse the repository at this point in the history
  • Loading branch information
villekf committed May 12, 2021
1 parent fb5d078 commit fc6b549
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/computePixelCenters.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
else
x_center = xx(1);
y_center = yy(1);
z_center = zz(1);
if isempty(zz)
z_center = 0;
else
z_center = zz(1);
end
% if (options.apply_acceleration) && options.n_rays_transaxial * options.n_rays_axial == 1
% dec = uint32(sqrt(options.Nx^2 + options.Ny^2 + options.Nz^2) * 2);
% else
Expand Down

0 comments on commit fc6b549

Please sign in to comment.