Skip to content

Commit 7206849

Browse files
committed
fix: exclusion mask output, remove visualisations usedfor debugging
1 parent 1f6a8d9 commit 7206849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decimer_segmentation/complete_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def expand_masks(
223223
Returns:
224224
np.array: Expanded masks
225225
"""
226+
image_array = np.invert(image_array)
226227
labeled_array, _ = label(image_array)
227228
mask_array = np.zeros_like(image_array)
228229
for seed_pixel in seed_pixels:
@@ -279,7 +280,6 @@ def complete_structure_mask(
279280
if mask_array.size != 0:
280281
# Binarization of input image
281282
binarized_image_array = binarize_image(image_array, threshold=0.72)
282-
debug = True
283283
if debug:
284284
plot_it(binarized_image_array)
285285
# Apply dilation with a resolution-dependent kernel to the image

0 commit comments

Comments
 (0)