STIR  6.2.0
Functions
test_proj_data_info_LOR.cxx File Reference

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

#include "stir_experimental/recon_buildblock/ProjMatrixByDenselUsingRayTracing.h"
#include "stir/ProjData.h"
#include "stir/ProjDataInfoCylindricalNoArcCorr.h"
#include "stir/ProjDataInfo.h"
#include "stir/VoxelsOnCartesianGrid.h"
#include "stir/Bin.h"
#include "stir/stream.h"
#include "stir/warning.h"
#include "stir/error.h"
#include "stir/LORCoordinates.h"
#include "stir/geometry/line_distances.h"

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