Skip to content

Commit 58f09ea

Browse files
Fix for bug #6
1 parent 92bd50b commit 58f09ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

findalllocalizations.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function findalllocalizations(file, threshold, ...
4444
% number of localizations in each frame
4545
localizations(iFrame) = size(points, 1);
4646

47-
if toDisplayFrames
47+
if toDisplayFrames && ~sum(isnan(points(:)))
4848
figure(1);
4949
localized_frame = insertShape(cur_frame,'circle', [points(:, 1) ...
5050
points(:, 2) 3.*ones(length(points(:, 1)), 1)], 'LineWidth', 1);
@@ -75,4 +75,4 @@ function findalllocalizations(file, threshold, ...
7575
end
7676
save(strcat('tmp/all_pnts/', fileName{1}), 'localizationList', ...
7777
'vidSize','-v7.3');
78-
end
78+
end

0 commit comments

Comments
 (0)