Skip to content

Commit

Permalink
fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dlegland committed Oct 17, 2023
1 parent eb01366 commit a960fc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/inra/ijpb/plugins/MergeLabelsPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ public void run(String arg)
}
case 1:
{
int conn = imagePlus.isStack() ? 6 : 4;
int conn = imagePlus.hasImageStack() ? 6 : 4;
LabelImages.mergeLabelsWithGap(imagePlus, imagePlus.getRoi(), conn, true);
break;
}
case 2:
{
int conn = imagePlus.isStack() ? 26 : 6;
int conn = imagePlus.hasImageStack() ? 26 : 6;
LabelImages.mergeLabelsWithGap(imagePlus, imagePlus.getRoi(), conn, true);
break;
}
Expand Down

0 comments on commit a960fc1

Please sign in to comment.