Skip to content

Commit

Permalink
Update generate_masks_from_ImageJ.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanherdy authored Jun 26, 2023
1 parent 49afe47 commit 877654a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_masks_from_ImageJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 877654a

Please sign in to comment.