diff options
author | Christian C <cc@localhost> | 2025-03-23 15:50:03 -0700 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-23 15:50:03 -0700 |
commit | 2fe858c22d27722130339c0d26de00aa78ef1f4d (patch) | |
tree | de0a52aab272ba4bb1a9189150d1509bb1b38089 /include | |
parent | 4bd07fca29619cf95f9ae224e9832e017c7d77b8 (diff) |
Shorter type names
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/data/image_types.h | 8 | ||||
-rw-r--r-- | include/lib/seg/util.h | 4 |
2 files changed, 6 insertions, 6 deletions
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); |