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 Oct 8, 2023
1 parent d63f6a9 commit 0f9ee02
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 0f9ee02

Please sign in to comment.