Thank you for your quick reply. I'll be waiting for the next version release! In the meantime, I think I've found a workaround that does the job for me: adapting from older versions, I've just replaced the definition of function 'external_mask_Callback' in 'PIVlab_GUI.m' with this:
function external_mask_Callback(~, ~, ~)
uiwait(helpdlg(['You can load a grayscale *.tif image here:' sprintf('\n') 'White = masked, black = no mask.']));
filepath=retr('filepath');
handles=gethand;
if size(filepath,1) > 1
[FileName,PathName] = uigetfile('*.tif','Select the binary image mask file');
if isequal(FileName,0) | isequal(PathName,0)
else
filename = fullfile(PathName,FileName);
num_img = length(imfinfo(filename));
for i = 1:num_img
A = bwboundaries(imread(filename,i));
for j = 1:length(A)
maskiererx{j,2*i-1} = A{j}(:,2);
maskiererx{j,2*i} = A{j}(:,2);
maskierery{j,2*i-1} = A{j}(:,1);
maskierery{j,2*i} = A{j}(:,1);
end
end
put('maskiererx' ,maskiererx);
put('maskierery' ,maskierery);
set(handles.mask_hint, 'String', 'Mask active', 'backgroundcolor', [0.5 1 0.5]);
dispMASK(0.333)
end
end