Skip to content

Commit 6cd0bbe

Browse files
committed
Fix bug in omnipose with incorrect channel selection.
1 parent 657e017 commit 6cd0bbe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/fiji/plugin/trackmate/cellpose/CellposeDetector.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,7 @@ public String call() throws Exception
484484
final OmniposeCLI ocli = ( OmniposeCLI ) cli;
485485
final String cStr = ocli.segmentationChannel().getValue();
486486
final int c = Integer.parseInt( cStr );
487-
final int chan = c - 1; // 1-based
488-
final ImagePlus chanImp = new Duplicator().run( imp, chan, chan, 0, 0, 0, 0 );
487+
final ImagePlus chanImp = new Duplicator().run( imp, c, c, 0, 0, 0, 0 );
489488
IJ.saveAsTiff( chanImp, Paths.get( tmpDir.toString(), name ).toString() );
490489
}
491490
else

0 commit comments

Comments
 (0)