diff options
author | Christian C <cc@localhost> | 2025-03-23 17:50:57 -0700 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-23 17:50:57 -0700 |
commit | 1b05c26a8ede821f84c042e25438040c36d4aee0 (patch) | |
tree | 91c8256d62432036679e787d36f4739917724b31 /lib | |
parent | 848a0f6e2d634001e30cbfebef05d93f7301facd (diff) |
Migration to Mask
Diffstat (limited to 'lib')
-rw-r--r-- | lib/seg/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/seg/util.c b/lib/seg/util.c index bc2f837..7b8d317 100644 --- a/lib/seg/util.c +++ b/lib/seg/util.c @@ -283,8 +283,11 @@ Mask *tif_to_labels(char *tif_file_name, MaskData_t *starting_label_p) } // Convert mask to bitmap -Bitmap* image_mask_data_to_bitmap(MaskData_t* buffer, uint32_t width, uint32_t height) +Bitmap* image_mask_data_to_bitmap(const Mask* mask) { + MaskData_t *buffer = mask->image[0]; + uint32_t width = mask->width; + uint32_t height = mask->height; Pixel* out_buffer = (Pixel*)calloc(width*height, sizeof(Pixel)); if (out_buffer == NULL) { return NULL; |