From 58f09eaf0c006351d9be0b748ad5cc261cf15b81 Mon Sep 17 00:00:00 2001 From: Shalin Shah Date: Mon, 3 Feb 2020 14:41:49 -0500 Subject: [PATCH] Fix for bug #6 --- findalllocalizations.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/findalllocalizations.m b/findalllocalizations.m index 22a3077..7eb663d 100644 --- a/findalllocalizations.m +++ b/findalllocalizations.m @@ -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); @@ -75,4 +75,4 @@ function findalllocalizations(file, threshold, ... end save(strcat('tmp/all_pnts/', fileName{1}), 'localizationList', ... 'vidSize','-v7.3'); -end \ No newline at end of file +end