Skip to content

Commit 1aafa46

Browse files
committed
Fix incorrect channel being fitted by the Gaussian spot fitter.
The channel specified by the users in the Spot Gaussian fitter action was not properly considered. I had forgotten to make a 1-based to 0-based conversion for the channel index we pass to ImgLib2.... Noticed by Thomas Sabate.
1 parent f072349 commit 1aafa46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/fiji/plugin/trackmate/action/fit/SpotFitterController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void run()
125125
{
126126
final ImagePlus imp = trackmate.getSettings().imp;
127127
// 1-based to 0-based.
128-
final int channel = gui.getSelectedChannel();
128+
final int channel = gui.getSelectedChannel() - 1;
129129
final int index = gui.getSelectedFitIndex();
130130
final SpotFitter fitter;
131131
// Stupid and harsh:

0 commit comments

Comments
 (0)