Export structure from 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 delivered dose in 20 patients treated with MRI-guided online adaptive radiotherapy for prostate cancer"
Where it is described and for which it was initially developed.
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for dicom_mask-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef2345f680c756667db20ad7036c47433adfdec82ad59a5e5226c1f1bde343d |
|
MD5 | d17bd5bc8c22fc36cea011af3f79d3ff |
|
BLAKE2b-256 | d59e2312b2902abf0fb98f9012010a20d8a1463fce30d892abd89750958fb72f |