From 22c32ae8649e8540198942b33d4bab72c4ea7238 Mon Sep 17 00:00:00 2001 From: Christian C Date: Sun, 23 Mar 2025 15:34:48 -0700 Subject: Userspace types --- include/lib/seg/util.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/lib/seg/util.h') diff --git a/include/lib/seg/util.h b/include/lib/seg/util.h index 395c5cd..88389f6 100644 --- a/include/lib/seg/util.h +++ b/include/lib/seg/util.h @@ -2,6 +2,7 @@ #define INC_LIB_SEG_UTIL_H #include +#include #include #include #include @@ -25,15 +26,15 @@ void closeup(ImageMaskData_t** mask, uint32_t width, uint32_t height, size_t cou // Combine Label Masks // For all empty spaces in the destination, put the extra label if it exists // Allocates an array if destination is unallocated -struct ImageMask* combine_masks(struct ImageMask *destination, struct ImageMask *extra_labels); +ImageMask* combine_masks(ImageMask *destination, ImageMask *extra_labels); // Process Tif File to Labels // width, height will be overwritten with image dimensions // starting_label_p will be incremented for each label found in the image -struct ImageMask* tif_to_labels(char* tif_file_name, uint32_t *width, uint32_t *height, ImageMaskData_t *starting_label_p); +ImageMask* tif_to_labels(char* tif_file_name, uint32_t *width, uint32_t *height, ImageMaskData_t *starting_label_p); // Convert mask to bitmap -struct bitmap_t* image_mask_data_to_bitmap(ImageMaskData_t* buffer, uint32_t width, uint32_t height); +Bitmap* image_mask_data_to_bitmap(ImageMaskData_t* buffer, uint32_t width, uint32_t height); // Reduce a mask to the contiguous regions // Automatically update pointer to contiguous mask -- cgit v1.2.1