Skip to content

Commit

Permalink
Fix for bug #6
Browse files Browse the repository at this point in the history
  • Loading branch information
shalinshah1993 authored Feb 3, 2020
1 parent 92bd50b commit 58f09ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions findalllocalizations.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function findalllocalizations(file, threshold, ...
% number of localizations in each frame
localizations(iFrame) = size(points, 1);

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

0 comments on commit 58f09ea

Please sign in to comment.