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

Plotting: fixed bug with missing mask in phase figure

parent f60f7eb3
No related branches found
No related tags found
No related merge requests found
......@@ -69,13 +69,19 @@ function gt6DMakePhaseFigureForPaper( phase_mat, phase_id, varargin )
end
end
slice_abs = get_slice(conf.abs_vol, conf.plane, conf.slice);
slice_abs = (slice_abs - min(slice_abs(:))) ./ (max(slice_abs(:)) - min(slice_abs(:)));
if (~isempty(conf.abs_vol))
slice_abs = get_slice(conf.abs_vol, conf.plane, conf.slice);
slice_abs = (slice_abs - min(slice_abs(:))) ./ (max(slice_abs(:)) - min(slice_abs(:)));
end
slice_mask = get_slice(conf.abs_mask, conf.plane, conf.slice);
slice_R(~slice_mask) = slice_abs(~slice_mask);
slice_G(~slice_mask) = slice_abs(~slice_mask);
slice_B(~slice_mask) = slice_abs(~slice_mask);
if (~isempty(conf.abs_mask))
slice_mask = get_slice(conf.abs_mask, conf.plane, conf.slice);
if (~isempty(conf.abs_vol))
slice_R(~slice_mask) = slice_abs(~slice_mask);
slice_G(~slice_mask) = slice_abs(~slice_mask);
slice_B(~slice_mask) = slice_abs(~slice_mask);
end
end
if (~isempty(conf.lims_u))
% Note the inversion between x/y because of matlab's transpose problem
......
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