Skip to content

Commit

Permalink
Fix OverlapTracker not working if the first frame was devoid of visib…
Browse files Browse the repository at this point in the history
…le spots.

Noticed by Laura Xénard  @Mini-Miette
Fix #260
  • Loading branch information
tinevez committed Mar 28, 2024
1 parent 6653f70 commit 91c4c97
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ public boolean process()
final Map< Spot, Polygon2D > targetGeometries = createGeometry( spots.iterable( targetFrame, true ), method, enlargeFactor );

if ( sourceGeometries.isEmpty() || targetGeometries.isEmpty() )
{
sourceGeometries = targetGeometries;
logger.setProgress( ( double ) progress++ / spots.keySet().size() );
continue;
}

final ExecutorService executors = Threads.newFixedThreadPool( numThreads );
final List< Future< IoULink > > futures = new ArrayList<>();
Expand Down

0 comments on commit 91c4c97

Please sign in to comment.