Skip to content

Commit

Permalink
fix: exclusion mask output, remove visualisations usedfor debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrink committed Dec 7, 2023
1 parent 1f6a8d9 commit 7206849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decimer_segmentation/complete_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def expand_masks(
Returns:
np.array: Expanded masks
"""
image_array = np.invert(image_array)
labeled_array, _ = label(image_array)
mask_array = np.zeros_like(image_array)
for seed_pixel in seed_pixels:
Expand Down Expand Up @@ -279,7 +280,6 @@ def complete_structure_mask(
if mask_array.size != 0:
# Binarization of input image
binarized_image_array = binarize_image(image_array, threshold=0.72)
debug = True
if debug:
plot_it(binarized_image_array)
# Apply dilation with a resolution-dependent kernel to the image
Expand Down

0 comments on commit 7206849

Please sign in to comment.