https://github.com/zdavatz/gdt2dicom
Convert a gdt file and an image folder to a dicom file
https://github.com/zdavatz/gdt2dicom
Last synced: 11 months ago
JSON representation
Convert a gdt file and an image folder to a dicom file
- Host: GitHub
- URL: https://github.com/zdavatz/gdt2dicom
- Owner: zdavatz
- License: gpl-3.0
- Created: 2023-03-08T07:52:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T07:27:03.000Z (over 1 year ago)
- Last Synced: 2025-03-01T07:23:01.456Z (over 1 year ago)
- Language: Rust
- Size: 642 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gdt2dicom
Convert a gdt file and an image folder to a dicom file
## Build
* Install `dcmtk`, that will give you `img2dcm`
* Install Rust: https://www.rust-lang.org/tools/install
```
cargo build
```
The binary should be built at `./target/debug/gdt2dicom` and `./target/debug/dicom2gdt`
### GDT to Dicom
You can run the binary like this:
```
./target/debug/gdt2dicom --gdt-file --jpegs --output
```
By default it searches for a xml file for Dicom in the jpegs folder (#5),
if it cannot find one it uses a default file. You can also specify the xml file with the `-d` or `--dicom-xml` flag.
### Dicom to GDT
You can convert Dicom 2 GDT as well.
```
./target/debug/dicom2gdt --dicom-file [--gdt-file ] [--jpegs ]
```
- `--gdt-file` or `-g` is optional, when it's not present, it will be outputed to stdout.
- `--jpegs` or `-j` is optional, when it's not present, images will not be exported.
### GDT zu Worklist file
You can convert a GDT file to a Worklist file doing
```
gdt2dicom --gdt-file epat.gdt --output epat.wl
```
### GDT to Open Practice Protocol
```
./target/debug/gdt2opp --gdt-file --output opp.xml
```