Skip to main content

Export structure form dicom to numpy binary mask

Project description

dicom-mask

Export structure from dicom to numpy binary mask

Install

pip install dicom-mask

Example usage

from dicom_mask.convert import struct_to_mask

dicom_dir = 'some_dicom_dir'
dicom_files = ['all', 'image', 'filenames', 'and', 'struct']
struct_name = 'liver' 

mask = struct_to_mask(dicom_dir, dicom_files, struct_name)

Citation

If you find this module useful in your research, please cite the following paper:

"Gating has a negligible impact on the dose delivered to 20 prostate cancer patients treated with MRI-guided online adaptive radiotherapy"

Where it is described and for which it was initially developed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dicom_mask-0.0.17.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page