You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Boris Sekachev f267f8aed3
Added DICOM conversion script (#3095)
* Added DICOM conversion script

* Updated changelog

* Fixed strip to rstrip

* Fixed some detected issues

* Removed extra variable, updated README.md
5 years ago
..
README.md Added DICOM conversion script (#3095) 5 years ago
requirements.txt Added DICOM conversion script (#3095) 5 years ago
script.py Added DICOM conversion script (#3095) 5 years ago

README.md

Description

The script is used to convert some kinds of DICOM data to regular images. Then you can annotate these images on CVAT and get a segmentation mask. The conversion script was tested on CT, MT and some multi-frame DICOM data. DICOM files with series (multi-frame) are saved under the same name with a number postfix: 001, 002, 003, etc.

Installation

python3 -m venv .env
. .env/bin/activate
pip install -r requirements.txt

Running

. .env/bin/activate # if not activated
python script.py input_data output_data