Closed Marrekko closed 3 years ago
Follow up: Sometimes it helps to track the error from the beginning :D The code stucks in line 63 of CalculateStats if a call has less than 6 datapoints, as threshold lowering does not help in this case:
if iter > 2
disp('lowering threshold')
end
It works fine if one reactivates the lines
if iter > 10
% disp('Could not detect contour')
greaterthannoise = true(1, size(I, 2));
break;
from March 2019. Maybe one can include a warning prompt that calls are ignored as they were to short. Best would be a possibility to review these and skip or really include them, but I don't have enough time for that now (or talent to do that in a short time)
Hey @Marrekko. Yup, this bug was is caused by boxes less than 5 pixels wide. I have pushed an update that fixes the problem. In the future I think I will try to automatically pad box sizes that are too small so we won't have to worry about minuscule boxes causing other problems.
Hi,
I've analyzed some data using the V3 from Agust 16 with Matlab 2021a. While exporting results to Excel, some files will produce a bug, some will be exported without problems. I don't really see the difference between them or what is causing this. Some files that do not work will hang up in early stages of exporting, some in later (according to the progress bar). So I guess there is a problem with single calls or boxes.
The command window reports repeatedly "lowering threshold" and will not stop until one interrupts the code, which doesn't really help to exactly find the error:
I've attached a file that produces this bug and I hope there is an easy solution for this :)
Best wishes
Marek Export_Test.zip