From 877654aa41ca537d2dd53e555820c636670d7a33 Mon Sep 17 00:00:00 2001 From: Stefan Herdy <69188729+stefanherdy@users.noreply.github.com> Date: Mon, 26 Jun 2023 16:11:17 +0200 Subject: [PATCH] Update generate_masks_from_ImageJ.py --- generate_masks_from_ImageJ.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generate_masks_from_ImageJ.py b/generate_masks_from_ImageJ.py index 94bec97..1feb70a 100644 --- a/generate_masks_from_ImageJ.py +++ b/generate_masks_from_ImageJ.py @@ -19,7 +19,7 @@ # Define the function to be executed on each image -def save_mask(image_path): +def extract_mask(image_path): mask = np.zeros((1080, 1920)) for i ,roi in enumerate(roiread(image_path)): #print(roi) @@ -42,7 +42,7 @@ def save_mask(image_path): # Construct the full path to the image image_path = os.path.join(folder_path, filename) # Execute the function on the image - mask = save_mask(image_path) + mask = extract_mask(image_path) cv2.imwrite('./mask/' + filename, mask) #cv2.imshow('test', mask) #cv2.waitKey(0)