diff --git a/CanlabCore/@region/region.m b/CanlabCore/@region/region.m index b65e4b59..c725f0a1 100644 --- a/CanlabCore/@region/region.m +++ b/CanlabCore/@region/region.m @@ -487,8 +487,12 @@ % if size(mask.dat, 1) == mask.volInfo.nvox % error('statistic_image objects should not have data vector (.dat) the length of full image space.') % end - - maskData = maskData .* mask.sig(:, 1); + + % Default threshold + if ~isempty(mask.sig) + maskData = maskData .* mask.sig(:, 1); + + end end