diff options
Diffstat (limited to 'src/visual.c')
-rw-r--r-- | src/visual.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/visual.c b/src/visual.c index ac6f63d..b41267b 100644 --- a/src/visual.c +++ b/src/visual.c @@ -87,8 +87,8 @@ int main(int argc, char** argv) //----------------------------------------------- char** file_list = NULL; uint32_t width, height; - uint16_t starting_label = 1; - uint16_t *masks = NULL; + ImageMaskData_t starting_label = 1; + ImageMaskData_t *masks = NULL; // Expect a directory to be passed as the first argument if (directory != NULL) { // Ensure the directory exists @@ -118,7 +118,7 @@ int main(int argc, char** argv) //----------------------------------------------- //-PROCESS-TIFF-TO-LABELS------------------------ //----------------------------------------------- - uint16_t *file_labels = tif_to_labels(fpath, &width, &height, &starting_label); + ImageMaskData_t *file_labels = tif_to_labels(fpath, &width, &height, &starting_label); if (file_labels == NULL) { free(fpath); free(file_list[index]); @@ -280,12 +280,12 @@ int main(int argc, char** argv) masks[x + y*width] >>= 4; } } - struct bitmap_t* bitmap = uint16_to_bitmap(masks, width, height); + struct bitmap_t* bitmap = image_mask_data_to_bitmap(masks, width, height); if (bitmap != NULL) { save_png(bitmap, png_file); free(bitmap); } - write_array(bin_file, masks, width*height*sizeof(uint16_t)); + write_array(bin_file, masks, width*height*sizeof(ImageMaskData_t)); free(masks); } CloseWindow(); @@ -294,12 +294,12 @@ int main(int argc, char** argv) //-SAVE-MASK-AS-BINARY-AND-PNG------------------- //----------------------------------------------- if (masks != NULL) { - struct bitmap_t* bitmap = uint16_to_bitmap(masks, width, height); + struct bitmap_t* bitmap = image_mask_data_to_bitmap(masks, width, height); if (bitmap != NULL) { save_png(bitmap, png_file); free(bitmap); } - write_array(bin_file, masks, width*height*sizeof(uint16_t)); + write_array(bin_file, masks, width*height*sizeof(ImageMaskData_t)); free(masks); } #endif |