We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49afe47 commit 877654aCopy full SHA for 877654a
generate_masks_from_ImageJ.py
@@ -19,7 +19,7 @@
19
20
21
# Define the function to be executed on each image
22
-def save_mask(image_path):
+def extract_mask(image_path):
23
mask = np.zeros((1080, 1920))
24
for i ,roi in enumerate(roiread(image_path)):
25
#print(roi)
@@ -42,7 +42,7 @@ def save_mask(image_path):
42
# Construct the full path to the image
43
image_path = os.path.join(folder_path, filename)
44
# Execute the function on the image
45
- mask = save_mask(image_path)
+ mask = extract_mask(image_path)
46
cv2.imwrite('./mask/' + filename, mask)
47
#cv2.imshow('test', mask)
48
#cv2.waitKey(0)
0 commit comments