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

gtMakeFigureFromPicture: fixed small bug

parent fa50ebb8
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ function [f, ax] = gtMakeFigureFromPicture(img, mask, varargin)
[conf, rej_conf] = parse_pv_pairs(conf, varargin);
if (~isempty(rej_conf))
disp('Unknown parameters:')
disp(rej_conf{:})
disp(rej_conf)
end
use_mask = exist('mask', 'var') && ~isempty(mask);
......@@ -63,6 +63,7 @@ function [f, ax] = gtMakeFigureFromPicture(img, mask, varargin)
f = figure();
ax = axes('parent', f);
if (use_mask)
imagesc(permute(img, [2 1 3]), 'parent', ax, ...
'AlphaDataMapping', 'scaled', 'AlphaData', mask', ...
......
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