Skip to content

Commit

Permalink
plugins/MorphologicalSegmentation: fix choice of gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
dlegland committed Jan 17, 2024
1 parent 5ffed65 commit 4b70214
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ else if( gradientList.getSelectedItem().equals("External") )
if( gradientList.getSelectedItem().equals("Internal") )
gradient = Morphology.internalGradient( image.getProcessor( 1 ), strel );
else if( gradientList.getSelectedItem().equals("External") )
gradient = Morphology.internalGradient( image.getProcessor( 1 ), strel );
gradient = Morphology.externalGradient( image.getProcessor( 1 ), strel );
else
gradient = Morphology.gradient( image.getProcessor( 1 ), strel );
image = new ImageStack(image.getWidth(), image.getHeight());
Expand Down

0 comments on commit 4b70214

Please sign in to comment.