diff options
| author | Christian Cunningham <cc@local.lan> | 2025-03-05 20:53:40 -0800 |
|---|---|---|
| committer | Christian Cunningham <cc@local.lan> | 2025-03-05 20:53:40 -0800 |
| commit | a0e91e3f1ca8d10a669074a2e11d1628932f508b (patch) | |
| tree | c73df879087bce2f3b8d6f09acaf378814027c66 /include/lib | |
| parent | 6c8c2d2df820c26ed7db32996c5f8b77bf0c2c32 (diff) | |
Closing up label gaps
Diffstat (limited to 'include/lib')
| -rw-r--r-- | include/lib/seg/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/lib/seg/util.h b/include/lib/seg/util.h index b3526dd..c3c0060 100644 --- a/include/lib/seg/util.h +++ b/include/lib/seg/util.h @@ -15,6 +15,12 @@ bool_t is_on_mask_boundary(uint16_t* mask, uint32_t width, uint32_t height, size // Dilate masks by one 4-connected pixel uint16_t* dilate(uint16_t* mask, uint32_t width, uint32_t height); +// Erode masks by one 4-connected pixel +uint16_t* erode(uint16_t* mask, uint32_t width, uint32_t height); + +// Close up masks by N-pixels +uint16_t* closeup(uint16_t* mask, uint32_t width, uint32_t height, size_t count); + // Combine Label Masks // For all empty spaces in the destination, put the extra label if it exists // Allocates an array if destination is unallocated |
