From 22db7ab4cb3b2928095bd9775fb015a5e28487f6 Mon Sep 17 00:00:00 2001 From: Christian C Date: Wed, 5 Mar 2025 21:57:20 -0800 Subject: Save to PNG --- include/lib/seg/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/lib/seg/util.h') diff --git a/include/lib/seg/util.h b/include/lib/seg/util.h index c3c0060..fcafff6 100644 --- a/include/lib/seg/util.h +++ b/include/lib/seg/util.h @@ -31,4 +31,7 @@ uint16_t* combine_masks(uint16_t *destination, uint16_t *extra_labels, uint32_t // starting_label_p will be incremented for each label found in the image uint16_t* tif_to_labels(char* tif_file_name, uint32_t *width, uint32_t *height, uint16_t *starting_label_p); +// Convert mask to bitmap +struct bitmap_t* uint16_to_bitmap(uint16_t* buffer, uint32_t width, uint32_t height); + #endif -- cgit v1.2.1