This script help to convert DDSM Dataset DICOM (medical format) to .png
Following steps in https://wiki.cancerimagingarchive.net/display/Public/CBIS-DDSM
The files are storages in directories. A common structure is:
manifest-1657064287305\CBIS-DDSM\Calc-Test_P_00038_LEFT_CC\08-29-2017-DDSM-NA-96009\1.000000-full mammogram images-63992\1-1.dcm
git clone https://github.com/vilsonrodrigues/ddsm-dicom-to-png.git
cd ddsm-dicom-to-png
pip install virtualenv
virtualenv env-ddsm
cd env-ddsm
cd Scripts
activate
source env-ddsm/bin/activate
pip install -r requirements.txt
python save_dicom_as_png.py
From Dataset-DDSM-png this script make a dataset using full mammograms. He apply zero-padding and resize. Split in malignant and benign.
python padding_resize_split_dataset.py oneView (width) (height)
python zip_directory.py (name-my-directory) (name-my-zip-directory)