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

Fsim: finally completely removed 'only_used_hkl'

parent 5ca29119
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,6 @@ function par_fsim = gtFsimDefaultParameters()
par_fsim.save_grain = true;
% threshold for looking for new spots in full images
par_fsim.thr_check = 0.1;
% flag to use only HKL families used in matching
par_fsim.only_used_hkl = true;
% Selects spots for reconsruction that are in the top 4.5 sigma of the likelihood rankings
par_fsim.sel_lh_stdev = 1.5;
% Selects spots for reconsruction that are in the top 4 sigma of the intensity rankings
......
......@@ -86,22 +86,8 @@ energy = parameters.acq.energy;
samgeo = parameters.samgeo;
cryst = parameters.cryst(grain{1}.phaseid);
if (isfield(parameters.fsim, 'only_used_hkl') ...
&& (parameters.fsim.only_used_hkl == true))
% get only used families in matching
fields = {'hkl', 'theta', 'dspacing', 'thetatype', 'int'};
crystTmp = cell2struct(cellfun(@(x) cryst.(x), ...
fields, 'UniformOutput', false), fields, 2);
crystTmp = structfun(@(x) x(:, cryst.usedfam), crystTmp, 'UniformOutput', false);
cryst.used_thetatype = crystTmp.thetatype;
index = find(cryst.usedfam);
index_tokeep = find(ismember(cryst.thetatypesp', index));
cryst.used_thetatypesp = index_tokeep';
else
cryst.used_thetatype = cryst.thetatype;
cryst.used_thetatypesp = cryst.thetatypesp;
end
cryst.used_thetatype = cryst.thetatype;
cryst.used_thetatypesp = cryst.thetatypesp;
cryst.usedfamsp = ismember(cryst.thetatypesp, cryst.used_thetatype);
......
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