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

gtDefSuntheticGrainCreate: fixed a few bugs

parent 7cfdf3ba
No related branches found
No related tags found
No related merge requests found
......@@ -189,10 +189,7 @@ grain = gtCalculateGrain(grain, parameters);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
num_dets = numel(detgeo);
grain.proj(1:num_dets) = struct( ...
'stack', [], 'num_cols', [], 'num_rows', [], 'bl', [], ...
'vol_size_x', [], 'vol_size_y', [], 'vol_size_z', [], 'shift', [], ...
'ondet', [], 'included', [], 'selected', [], 'centerpix', []);
grain.proj = gtFwdSimProjDefinition([], num_dets);
for n = 1:num_dets
% Checking if we should just project all of them, or wether the user
......@@ -282,7 +279,7 @@ function [gvpcs, gvd] = compute_oversampling_voxels(gv, dmvol, fedpars, voxsize)
orig_gvdm = gv.dm;
counter = 0;
counter = 1;
corner = (1 - (1 / vssampling)) / 2 .* voxsize;
fprintf('\b\b: ')
......
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