Convert DICOM RT-Struct to nii
Project description
dcmrtstruct2nii
DICOM RT-Struct to nii-mask
CLI Tool
# install using pip and show tool help
pip install dcmrtstruct2nii
dcmrtstruct2nii --help
# list structures in DICOM RT Struct
dcmrtstruct2nii list -r /path/to/rtstruct/file
# convert help output
dcmrtstruct2nii convert --help
# convert DICOM RT Structs to .nii.gz masks
dcmrtstruct2nii convert -r /path/to/rtstruct/file.dcm -d /path/to/original/extracted/dicom -o /output/path
Python API
# install using pip and show tool help
pip install dcmrtstruct2nii
# lets test it
from dcmrtstruct2nii import dcmrtstruct2nii, list_rt_structs
print(list_rt_structs('/path/to/dicom/rtstruct/file.dcm'))
dcmrtstruct2nii('/path/to/dicom/rtstruct/file.dcm', '/path/to/original/extracted/dicom/files', '/output/path')
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
dcmrtstruct2nii-1.0.14.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for dcmrtstruct2nii-1.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e781c2d42db2ef14b477590cbbd650f9f3dcc61ddafe0d4039e75a9d9e103bb |
|
MD5 | ccbfd03f8ccc779a97c83e7273f5c8b0 |
|
BLAKE2b-256 | da6b7ab48b236de2e7c7f9cf8271eb3d1e3ae1773629b2e160e55d7bbfc9f38d |