Skip to content
Snippets Groups Projects
Commit 92984d52 authored by Lorenzo Valzania's avatar Lorenzo Valzania
Browse files

Correction of grain center in the case of real data

parent e222f24c
No related branches found
No related tags found
No related merge requests found
......@@ -91,10 +91,14 @@ gv.ind = gv.ind';
% Elements' positions in the sample volume in mm!
gv.cs = fedpars.vox000sam(ones(nv, 1), :)' + gv.ind .* recgeo(1).voxsize(ones(nv, 1), :)';
% Grain center position in sample in mm!
gc = fedpars.vox000sam + (grsize/2 + [0.5, 0.5, 0.5]) .* recgeo(1).voxsize;
fedpars.graincentsam = gc;
grain.center = gc;
if (~(isfield(fedpars, 'is_real_data') && fedpars.is_real_data))
% Grain center position in sample in mm!
gc = fedpars.vox000sam + (grsize/2 + [0.5, 0.5, 0.5]) .* recgeo(1).voxsize
grain.center = gc;
fedpars.graincentsam = gc;
else
gc = grain.center;
end
% Element diffracting power
if (~exist('intvol', 'var') || isempty(intvol))
......
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