diff options
author | Christian C <cc@localhost> | 2025-03-06 15:34:34 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-06 15:34:34 -0800 |
commit | 9c6ca913d0b7f9b9ae95f72d6187944a8a940228 (patch) | |
tree | 2b6ffaa14fcce621aaff17aef27c29a19dad6ec5 /include/lib/seg/mask_data.h | |
parent | fa4a17e9ab5b55f8b8da3d52ee05ae62dde2e3a8 (diff) |
Simplify execution
Diffstat (limited to 'include/lib/seg/mask_data.h')
-rw-r--r-- | include/lib/seg/mask_data.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/lib/seg/mask_data.h b/include/lib/seg/mask_data.h index f2803e6..8e2ae3a 100644 --- a/include/lib/seg/mask_data.h +++ b/include/lib/seg/mask_data.h @@ -56,4 +56,10 @@ bool_t in_uint16_t_tree(struct AVLNode* root, uint16_t value); // Assumption: Contiguous labeling struct AVLNode* get_small_labels(struct AVLNode* removal_tree, struct AVLNode* label_tree, size_t min_area, size_t min_perimeter); +// Get mask label data +struct AVLNode* get_mask_data(uint16_t* masks, uint32_t width, uint32_t height); + +// Filter out small masks in mask +void filter_small_masks(uint16_t* masks, uint32_t width, uint32_t height, size_t min_area, size_t min_perimeter); + #endif |