diff options
Diffstat (limited to 'src/prog.c')
-rw-r--r-- | src/prog.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -86,8 +86,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 @@ -117,7 +117,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]); @@ -198,12 +198,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); } TIME(ts_g_end); |