Skip to content

Simple code to generate Digitally Reconstructed Radiographs from Nifti(.nii)/MetaImage (.mhd) CT data

License

Notifications You must be signed in to change notification settings

msrepo/DRR-renderer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple code to generate Digitally Reconstructed Radiographs from MetaImage (.mhd) CT data

The code generates DRR images in a transparent and simple manner, the user can tune every parameter, such as view point angles, distance to CT, intrinsics of DRR view, step of raytracing, ... The DRR generation takes 2 seconds on a Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz 8 cores on Ubuntu 14.10. The .mhd standard is not fixed, therefore it might happen that the CT header use other terms than the ones used in our code for header element such as Element Spacing,... This should be check before running the code.

  • Added: parsing of input arguments using argparse library(https://github.com/hbristow/argparse)
  • Added: read Nifti file format (using itkImageReader). Additionally, works on other formats supported by itk (most importantly MHD file format)
  • Added: add attenuation lookup (LUT) function to better simulate drr(but does not work yet)
  • Added: Size of the output depends on the input dimensions
  • Added: additional input arguments to invert, rescale
  • TODO: change size according to rotation arguments

Sample Output

DOI

About

Simple code to generate Digitally Reconstructed Radiographs from Nifti(.nii)/MetaImage (.mhd) CT data

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.7%
  • CMake 4.3%