Skip to content

Commit

Permalink
fix: table line exlusion with connected object detection
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrink committed Nov 17, 2023
1 parent 0a833e5 commit e2f38d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion decimer_segmentation/complete_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def expand_masks(
Returns:
np.array: Expanded masks
"""
labeled_array, _ = label(np.invert(image_array))
image_with_exclusion = np.invert(image_array) * np.invert(exclusion_mask)
labeled_array, _ = label(image_with_exclusion)
mask_array = np.zeros_like(image_array)
for seed_pixel in seed_pixels:
x, y = seed_pixel
Expand Down

0 comments on commit e2f38d7

Please sign in to comment.