XDRT (XDR Toolkit) is a python toolkit to work with the Elekta XDR and XVI file formats.
Project description
XDRT (XDR Tools)
XDRT is a python toolkit to work with the XDR file format used e.g. by Elekta to store cone-beam CT images and as reconstructed by XVI.
The reading of .xvi
files is also supported, allowing to find the map the XDR file to the moment of acquistion
(which fraction, what type of scan).
- Free software: Apache Software License 2.0. Decompression library is public domain, but has a different license.
- Documentation: https://docs.aiforoncology.nl/xdrt/.
Features
- Utilities to read (compressed) 3D and 4D XDR files in python.
- Ability to read XVI files and link planning scans with cone-beam CT scans.
xdr2img
command line utility to convert xdr images to ITK supported formats.xvi2img
command line utility converts all fractions to ITK supported formats.
How to use
The package needs to compile the decompression library, which can be done with:
python setup.py install
or with pip install git+https://github.com/NKI-AI/xdrt.git
or from PyPi using pip install xdrt
.
- The command line program
xdr2img image.xdr image.nrrd
converts images from XDR to any ITK supported format. For more details checkxdr2img --help
. - The command line program
xvi2img
reads XVI files and combined with the XDR files, writes to a new directory and image format. For more details checkxvi2img --help
.
Work in progress
This package is work in progress, if you have an image which is not properly parsed
by xdrt
, create an issue with the image and expected output.
The following is not yet supported:
- Origin is not yet always properly parsed.
- Only
uniform
grids are currently supported. - Protocol is not detected from the XVI file (e.g. 4D-CBCT + SBRT). Images in fraction are output consecutively.
Create an issue if this is an urgent issue for you.
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
File details
Details for the file xdrt-0.2.2.dev0.tar.gz
.
File metadata
- Download URL: xdrt-0.2.2.dev0.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff6a0730bae6cf6385dd887d7ae13ab3706cb8c03ff2e38d3a185b27532e31d |
|
MD5 | fb2411064ad901d4d36d7d73b1d0bc5c |
|
BLAKE2b-256 | 9c89f51129a3a0c6d86a460eaf900c3803fa39512b89f8c2090d93001dd68f76 |