STIR 6.4.0
test_proj_data_info_LOR.cxx File Reference

Test program to check consistency between projectors and LOR->detectors functions. More...

Functions

int main (int argc, char *argv[])
 

Detailed Description

Test program to check consistency between projectors and LOR->detectors functions.

Tests detector points and LOR functions by checking intersections of LORs

Warning
Preliminary. Needs spanned but unmashed template projection data.
When trying different scanners/dimensions/voxels, run only in debug mode to catch asserts.
for some voxels, the round-trip in bin coordinates does not work (it ends up in the wrong plane). This is because the current axial-coordinate handling in this test is unsafe.
Todo

test stir::ProjDataInfo::get_LOR and stir::ProjDataInfo::get_bin

use stir::RunTests

Author
Sanida Mustafovic
Kris Thielemans