https://github.com/kitwaremedical/dicom-exporter
DICOM file converter in Python
https://github.com/kitwaremedical/dicom-exporter
dicom itk python vtk-js
Last synced: about 1 year ago
JSON representation
DICOM file converter in Python
- Host: GitHub
- URL: https://github.com/kitwaremedical/dicom-exporter
- Owner: KitwareMedical
- License: bsd-3-clause
- Created: 2021-11-15T14:27:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-24T21:18:59.000Z (over 1 year ago)
- Last Synced: 2025-03-24T13:03:51.927Z (about 1 year ago)
- Topics: dicom, itk, python, vtk-js
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 13
- Watchers: 6
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# DICOM-exporter
The DICOM-exporter is used to export DICOM files into VTK.JS or VTI files.
## Install
```sh
pip install .
```
## Usage
```sh
dicom-exporter
```
or for faster loading in VTK.JS:
```sh
dicom-exporter
```
Setting the `--convert-12-bits`-flag will convert the resulting VTK file using 12 bits instead of 16 bits per block. This is only applied if the input DICOM files are encoded in 12 bits instead of 16 bits (i.e. BitsStored is 12 in the DICOM metadata).
The output file is compressed using gzip for VTK.JS files and ZLib for VTI files, unless the `--no-compress` flag is set.
Use `--resample` flag to resample the volume using the closest axis aligned direction matrix. This resampling will set the direction matrix to identity (legacy behavior).