From SPIE-AAPM-NCI PROSTATEx Challenges (PROSTATEx)
dicom to tiff conversion
pip install dicom2jpg
dicom_path = '../dicom'
output_path = '../out_dicom'
dicom2jpg.dicom2tiff(dicom_path, target_root=output_path, anonymous=False, multiprocessing=True)
Use Labelme Tool
Save .json mask in ./json folder
Run labelme_to_json_batch.py
Get mask -> Run tiff_convert.py
Data Partition : (80 : 20, 'Train' : 'Validation')
Read Data
Run dataprep.py
Prostate : Read -> Resize -> Histogram Equalization -> save to .npy
Mask : Read -> Resize and Grayscale -> save to .npy
Predictions :