Skip to content
Snippets Groups Projects
Commit bac91033 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

gtINDEXMatchGrains : bug fix with 'conflicts' output argument


Signed-off-by: default avatarLaura Nervo <laura.nervo@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@941 4c865b51-4357-4376-afb4-474e03ccb993
parent ac2a61d9
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ if ~exist('grain2','var') || isempty(grain2)
end
if ~exist('tol','var')
if ~exist('tol','var') || isempty(tol)
tol.distf = 0.5; % 0.5
tol.Rdist = 0.02; % 0.05
tol.bbxs = 2; % 3
......@@ -471,6 +471,12 @@ else
end
if nargout == 6
if size(conflicts{1},2)>1
for ii=1:size(conflicts,1)
tmp{ii} = [conflicts{ii,:}];
end
tmp2= cell2mat(tmp);
else
tmp = cell2mat(conflicts);
pippo_cc = cell(0,2);
for ii=1:size(tmp,1)
......@@ -480,6 +486,7 @@ else
end
tmp = cell2mat(pippo_cc');
toBeChecked = unique(tmp, 'rows');
end
end
end
......
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