From 2fe858c22d27722130339c0d26de00aa78ef1f4d Mon Sep 17 00:00:00 2001 From: Christian C Date: Sun, 23 Mar 2025 15:50:03 -0700 Subject: Shorter type names --- include/lib/data/image_types.h | 8 ++++---- include/lib/seg/util.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/lib/data/image_types.h b/include/lib/data/image_types.h index b9ff21e..4e226ea 100644 --- a/include/lib/data/image_types.h +++ b/include/lib/data/image_types.h @@ -15,16 +15,16 @@ typedef struct Image { Image_t image; } Image; -typedef struct ImageMask { +typedef struct Mask { size_t width; size_t height; Mask_t image; -} ImageMask; +} Mask; Image* create_image(size_t width, size_t height); -ImageMask* create_image_mask(size_t width, size_t height); +Mask* create_image_mask(size_t width, size_t height); void free_image(Image* image); -void free_image_mask(ImageMask* image_mask); +void free_image_mask(Mask* image_mask); #endif diff --git a/include/lib/seg/util.h b/include/lib/seg/util.h index db46e5a..4d6b6e4 100644 --- a/include/lib/seg/util.h +++ b/include/lib/seg/util.h @@ -26,12 +26,12 @@ void closeup(MaskData_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 -ImageMask* combine_masks(ImageMask *destination, ImageMask *extra_labels); +Mask* combine_masks(Mask *destination, Mask *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 -ImageMask* tif_to_labels(char* tif_file_name, uint32_t *width, uint32_t *height, MaskData_t *starting_label_p); +Mask* tif_to_labels(char* tif_file_name, uint32_t *width, uint32_t *height, MaskData_t *starting_label_p); // Convert mask to bitmap Bitmap* image_mask_data_to_bitmap(MaskData_t* buffer, uint32_t width, uint32_t height); -- cgit v1.2.1