Skip to content

Commit

Permalink
don't check closed
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed May 20, 2024
1 parent be427cb commit 53c1896
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jcvi/graphics/grabseeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ def seeds(args):
for i, mask in enumerate(deduplicated_masks):
labels[mask["segmentation"]] = i + 1
labels = clear_border(labels)
closed = None
else:
edges = clear_border(edges, buffer_size=opts.border)
selem = disk(kernel)
Expand Down Expand Up @@ -767,7 +766,7 @@ def seeds(args):
if opts.watershed:
params += ", watershed"
ax2.set_title(f"Edge detection\n({params})")
if closed:
if ff != "sam":
closed = gray2rgb(closed)
ax2_img = labels
if opts.edges:
Expand Down

0 comments on commit 53c1896

Please sign in to comment.