Closed MSKTHU closed 3 years ago
It's a bug. nMore
is just a rough estimation of how many more points should be added to tracking. If nMore
is 0, which means no more point is needed, so maybe just skipping the following lines to avoid crashing is the fix.
I used your code on MATLAB 2019a and it crashed since nMore equals to 0 when calling getMorePoints at line 53 of GetTracks.m. Error message tells that pNew = pNew.selectStrongest(nMore) at line 85 of GetTracks.m should have a positive input. So I added the three line
at line 77 and it runs. However, I don't know if anything will be wrong if I limit nMore no less than 1.