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 11, 2023
1 parent 14884de commit ed1bf18
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 = Executors.newFixedThreadPool( numThreads );
final List< Future< IoULink > > futures = new ArrayList<>();
Expand Down

0 comments on commit ed1bf18

Please sign in to comment.