Skip to content

Commit 877654a

Browse files
authored
Update generate_masks_from_ImageJ.py
1 parent 49afe47 commit 877654a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate_masks_from_ImageJ.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
# Define the function to be executed on each image
22-
def save_mask(image_path):
22+
def extract_mask(image_path):
2323
mask = np.zeros((1080, 1920))
2424
for i ,roi in enumerate(roiread(image_path)):
2525
#print(roi)
@@ -42,7 +42,7 @@ def save_mask(image_path):
4242
# Construct the full path to the image
4343
image_path = os.path.join(folder_path, filename)
4444
# Execute the function on the image
45-
mask = save_mask(image_path)
45+
mask = extract_mask(image_path)
4646
cv2.imwrite('./mask/' + filename, mask)
4747
#cv2.imshow('test', mask)
4848
#cv2.waitKey(0)

0 commit comments

Comments
 (0)