Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

XDRT (XDR Tools)

pypi

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).

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 check xdr2img --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 check xvi2img --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.

Metadata

Release files for xdrt 0.2.2.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xdrt 0.2.2.dev0
File Size Uploaded Provenance
xdrt-0.2.2.dev0.tar.gz 36.6 kB Without provenance Details

Release files / xdrt-0.2.2.dev0.tar.gz

Download URL xdrt-0.2.2.dev0.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1ff6a0730bae6cf6385dd887d7ae13ab3706cb8c03ff2e38d3a185b27532e31d
BLAKE2b-256 checksum
How to use checksums
9c89f51129a3a0c6d86a460eaf900c3803fa39512b89f8c2090d93001dd68f76
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for xdrt 0.2.2.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page