JoaoSantinha / Label_of_Physical_Point_Medical_Image

Python script that given a list of physical coordinates and a segmentation mask returns the corresponding labels of those coordinates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Label_of_Physical_Point_Medical_Image

Python script that given a list of physical coordinates and a segmentation mask returns the corresponding labels of those coordinates

Dependencies

  • SimpleITK - can be install using:

pip install SimpleITK

Examples of usage:

  • Check which coordinates correspond to label 2 python ./model_tissue_id.py --csv <csv_filepath> --segmentation <segmentation_filepath> --output <output_filepath> --label 2

  • Returns corresponding labels of provided coordinates python ./model_tissue_id.py --csv <csv_filepath> --segmentation <segmentation_filepath> --output <output_filepath> --label -1

About

Python script that given a list of physical coordinates and a segmentation mask returns the corresponding labels of those coordinates

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%