Skip to content

Commit

Permalink
Fix handling of ROIs in Process2DZ with multiple channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinevez committed Feb 5, 2024
1 parent 57b603b commit 33ffbaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/fiji/plugin/trackmate/detection/Process2DZ.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ public boolean process()
newSpot.putFeature( Spot.QUALITY, Double.valueOf( avgQuality ) );

// Shift them by interval min.
for ( int d = 0; d < 3; d++ )
newSpot.move( interval.min( d ) * calibration[ d ], d );
newSpot.move( interval.min( img.dimensionIndex( Axes.X ) ) * calibration[ 0 ], 0 );
newSpot.move( interval.min( img.dimensionIndex( Axes.Y ) ) * calibration[ 1 ], 1 );
newSpot.move( interval.min( img.dimensionIndex( Axes.Z ) ) * calibration[ 2 ], 2 );

spots.add( newSpot );
}
Expand Down

0 comments on commit 33ffbaf

Please sign in to comment.