aboutsummaryrefslogtreecommitdiff
path: root/include/lib/seg/util.h
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-23 15:34:48 -0700
committerChristian C <cc@localhost>2025-03-23 15:34:48 -0700
commit22c32ae8649e8540198942b33d4bab72c4ea7238 (patch)
tree946e173c4ab362ec88f21854e8613a21c330a6e1 /include/lib/seg/util.h
parent981e8bfd12f79cb469bb54a915230eda6dafab41 (diff)
Userspace types
Diffstat (limited to 'include/lib/seg/util.h')
-rw-r--r--include/lib/seg/util.h7
1 files changed, 4 insertions, 3 deletions
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 <lib/bool.h>
+#include <lib/png.h>
#include <lib/data/image_types.h>
#include <stdint.h>
#include <stddef.h>
@@ -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