CTL  0.6.1
Computed Tomography Library
Functions | Variables
backprojectorbase.cpp File Reference
#include "backprojectorbase.h"
#include "acquisition/geometryencoder.h"
#include "components/abstractdetector.h"
#include "ocl/clfileloader.h"
#include "ocl/openclconfig.h"
#include "img/voxelvolume.h"
#include <QMetaEnum>
Include dependency graph for backprojectorbase.cpp:

Functions

bool CTL::assist::isConsistentPair (const AcquisitionSetup &setup, const ProjectionDataView &projections)
 Returns true if the specifications in setup are consistent with projections. More...
 

Variables

const std::string CL_KERNEL_NAME_NULLIFIER = "nullify_buffer"
 name of the OpenCL kernel function (nullifier)
 
const std::string CL_FILE_NAME_NULLIFIER = "recon/nullifier.cl"
 path to .cl file
 

Function Documentation

◆ isConsistentPair()

bool CTL::assist::isConsistentPair ( const AcquisitionSetup setup,
const ProjectionDataView projections 
)

Returns true if the specifications in setup are consistent with projections.

In detail, this verifies that:

  • setup is valid (see AcquisitionSetup::isValid()),
  • the number of detector modules in setup is the same as in projections,
  • the view dimensions of the detector in setup are the same as in projections, and
  • projections contains no view id larger than the number of views in the configured setup.

Returns false if any of the conditions is violated (also issues a corresponding qWarning message).