Skip to content

Commit

Permalink
Update script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EduReyes authored Aug 5, 2021
1 parent dab9a2c commit 12e5e56
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from percentageLungTissues.percentageLungTissues import *

species_dict = {"human":"human_org",
"mice":"mice_TL",
"macaque":"mix_no_TL_a_mac"}
"mice":"mice_TL",
"macaque":"mix_no_TL_a_mac"}


def ReadImage(path : str, image_extension =".mhd"):
Expand Down Expand Up @@ -54,7 +54,6 @@ def read_dicom(path):
sys.exit("Choose a correct one!")



images_path = glob.glob(images_folder + "/*.mhd")

for path in images_path:
Expand All @@ -69,4 +68,4 @@ def read_dicom(path):

sitk.WriteImage(seg, os.path.join(results_folder, 'Res_' + name))

getPercentageLungTissues(images_folder,results_folder)
getPercentageLungTissues(images_folder,results_folder)

0 comments on commit 12e5e56

Please sign in to comment.