Skip to content

Daveelvt/TIGRE

 
 

Repository files navigation

TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox

TIGRE is a MATLAB/CUDA toolbox for fast and accurate 3D tomographic reconstruction, created jointly by University of Bath's Engineering Tomography Lab and CERN. The aim of TIGRE is to provide a wide range of easy-to-use iterative algorithms to the tomographic research community. We would like to build an stronger bridge between algorithm researchers and imaging researchers, by encouraging and supporting contributions from both sides into TIGRE. TIGRE is free to use and distribute, use it, modify it, break it, share it; the only requirement is proper referencing to the authors.

Currently it contains Cone Beam CT geometries, and a beta of parallel geometries.

TIGRE features:

  • Fast, state of the art projection using interpolation or Siddon (Jacob) ray-tracing

  • Fast, state of the art backprojection, with FDK weight or matched weight

  • A wide range of algorithms with multiple configurations for each

    • FDK
    • SART
    • OS-SART
    • SIRT
    • CGLS
    • ADS-POCS
    • OSC-POCS
    • B-ADS-POCS-β
    • SART-TV
    • MLEM
  • TV denoising for 3D images

  • A variety of plotting functions

  • Quality measures

How to install TIGRE

(Caution, this has only been tested on win 64 machines, please report any issue if it doesnt work in other arch/OS)

  • Download TIGRE from the downloads page

  • Install CUDA Toolkit (the later, the better) Download here

  • If you are working on a win64 machine, with CUDA 7.5, stop here. The toolbox should be ready to use.

If it doesn't work, or you are not in win64 CUDA 7.5

  • Make sure a compiler is set up in your MATLAB. run mex -setup. If a compiler is not set up, make sure you download one (some are free) and run mex -setup again.

  • Make sure the xml file for compiling is properly set up. E.g. in Linux 64 bit machines mex_CUDA_glnxa64.xml should be present, and inside it the proper links to CUDA will have to be set up.

  • On linux machines, make sure you modify mex_CUDA_glnxa64.xml line 44 to the correct path to libcudart on your system.

  • Run Compile.m

  • TIGRE should be ready to use!

Some fancy images

TIGRE gets this:

Imgur

And transforms it to this:

this image

And much more! There are 9 algorithms that will behave differently for different data! Just get it, and try your data!

Getting started & Documentation

The first thing you need to do is run InitTIGRE, to initialize all the folders and subfolders if the toolbox.

Currently the documentation is included in each of the functions. You can access it by typing help function_name or by selecting the function in the editor and pressing F1. Additionally, the demos should include all the necessary documentation and examples of use.

Issues

If you have any issues with compiling/running TIGRE, or you found a bug in the code, please report it on the issues page.

Please, be as clear as possible with the description of the problem. If it is a specific problem in an specific scenario, provide a Minimum Complete Verifiable Example of the problem (see Stackoverflow.com's definition);

Protip you can label the Issues by topic

I want to contribute!

Wow! We are glad you do! Please, if you want to contribute new methods, algorithms, pre- or post- processing techniques, bug-fixes, documentation, or anything you thing it can help the community, please, do! We encourage this behaviour!

But how?

Easy! you can download the git repo, and make a pull request with your contribution. We will review it and add it if its suited for TIGRE.

If you don't know how git works1 you can also send an email us to tigre.toolbox@gmail.com with your contribution, and an explanation of what it does and how. We will review and add the contribution if suited.

If your contribution can be linked to a published, peer-reviewed article or an arXiv entry, please let us know so we can make sure the citeme function includes your contributions.

FAQ

Q: I get "the launch timed out and was terminated" error when I run big images in my computer

A: This happens because your GPU takes too long (according to the OS) to finish running the code. Don't worry, too long means about 100ms or so. However, you need to make sure to change the OS's GPU watchdog time. If you are working on a TESLA, setting the TESLA to TCC mode will fix the problem.

Q: After running something I got an error in Ax or Atb and now nothing works

A: Unfortunately when CUDA has an error, it hungs. You need to restart MATLAB to fix this. Hopefully we can find a solution for this without the need of restarting MATLAB

Licensing

TIGRE toolbox is released under the BSD License, meaning you can use and modify the software freely in any case, but you must give attribution to the original authors. For more information, read the license file or the BSD License Definition or the license file

Contact

Before contacting consider that you might be able to let us know your concerns by raising an issue and labeling accordingly. If you still need to contact us:

tigre.toolbox@gmail.com

We will make an effort to answer as soon as we can.

Referencing TIGRE

If you use TIGRE in any publications, please reference the following paper:

TIGRE: A MATLAB-GPU toolbox for CBCT image reconstruction Ander Biguri, Manjit Dosanjh, Steven Hancock, and Manuchehr Soleimani To be published, 2016

Also, if you use any algorithm, you should reference the corresponding creator of the algorithms. If you don't know the article, use citeme('NameOfFunction') and the right reference will appear.


1 You can learn, it is very useful!

About

TIGRE: Tomographic Iterative GPU-based Reconstruction Toolbox

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • MATLAB 59.9%
  • Cuda 23.1%
  • C++ 14.5%
  • TeX 2.5%