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 Sep 12, 2023
1 parent 9deec42 commit 6eadad6
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 6eadad6

Please sign in to comment.