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 59f26d5 commit ed48d0f
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 ed48d0f

Please sign in to comment.