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

FED - phantom generation: removed commented out sections

parent 0c3713a8
No related branches found
No related tags found
No related merge requests found
...@@ -169,10 +169,6 @@ if ~all(gradok) ...@@ -169,10 +169,6 @@ if ~all(gradok)
disp(find(~gradok)') disp(find(~gradok)')
end end
% figure('name', 'Epsilon33')
% slice(dmvol(:, :, :, 3), grsize(1)/2, grsize(2)/2, grsize(3)/2);
% colorbar
disp('Largest deformation component:') disp('Largest deformation component:')
disp(max(dmvol(:))) disp(max(dmvol(:)))
disp('Smallest deformation component:') disp('Smallest deformation component:')
...@@ -195,27 +191,6 @@ end ...@@ -195,27 +191,6 @@ end
grain = gtCalculateGrain(grain, parameters); grain = gtCalculateGrain(grain, parameters);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Arrows of projection vectors
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % Quiver figure of projection vectors
% dvecsam = grain.allblobs.dvecsam(lbl, :);
%
% figure('name', 'Projection vectors')
% quiver3(zeros(nbl, 1), zeros(nbl, 1), zeros(nbl, 1), ...
% dvecsam(:, 1), dvecsam(:, 2), dvecsam(:, 3));
% axis equal
% hold on
% for ii = 1:nbl
% text(dvecsam(ii, 1), dvecsam(ii, 2), dvecsam(ii, 3), ...
% num2str(ii), 'VerticalAlignment', 'Bottom', 'Color', 'm')
% text(dvecsam(ii, 1), dvecsam(ii, 2), dvecsam(ii, 3), ...
% num2str(fedpars.loadbl(ii)), 'VerticalAlignment', 'Top', 'Color', 'r')
% end
% title('blob ID in FED (magenta), blob ID in grain (red)')
% drawnow();
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Iinitial blob parameters %%% Iinitial blob parameters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...@@ -230,7 +205,7 @@ grain.proj(1:num_dets) = struct( ... ...@@ -230,7 +205,7 @@ grain.proj(1:num_dets) = struct( ...
for n = 1:num_dets for n = 1:num_dets
% Checking if we should just project all of them, or wether the user % Checking if we should just project all of them, or wether the user
% has something to say abou it. % has something to say abou it.
if (isfield(fedpars, 'detector')) if (isfield(fedpars, 'detector') && isfield(fedpars.detector(n), 'ondet'))
ondet = fedpars.detector(n).ondet; ondet = fedpars.detector(n).ondet;
included = fedpars.detector(n).included; included = fedpars.detector(n).included;
selected = fedpars.detector(n).selected; selected = fedpars.detector(n).selected;
...@@ -386,8 +361,6 @@ for n = 1:num_dets ...@@ -386,8 +361,6 @@ for n = 1:num_dets
for ii = 1:nbl for ii = 1:nbl
bl(ii).intm = bl(ii).int; bl(ii).intm = bl(ii).int;
bl(ii).int(:) = []; bl(ii).int(:) = [];
% bl(ii).int(:) = 0;
% bl(ii).intd(:) = bl(ii).int - bl(ii).intm;
bl(ii).comim = NaN(1, 3); bl(ii).comim = NaN(1, 3);
bl(ii).combl = NaN(1, 3); bl(ii).combl = NaN(1, 3);
......
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