CTL  0.6.1
Computed Tomography Library
Classes | Typedefs | Functions
backprojectorbase.h File Reference
#include "abstractreconstructor.h"
#include "acquisition/acquisitionsetup.h"
#include "mat/matrix_types.h"
#include "ocl/pinnedmem.h"
Include dependency graph for backprojectorbase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CTL::OCL::BackprojectorBase
 The BackprojectorBase class is a helper class from which OpenCL implementations of cone-beam backprojections can be derived. More...
 

Typedefs

using CTL::BackprojectorWeighting = OCL::BackprojectorBase::WeightingType
 

Functions

bool CTL::assist::isConsistentPair (const AcquisitionSetup &setup, const ProjectionDataView &projections)
 Returns true if the specifications in setup are consistent with projections. More...
 
template<typename T >
QVariantList CTL::assist::vectorToVariantList (const std::vector< T > &vector)
 Converts data from vector into a QVariantList.
 
template<typename T >
std::vector< T > CTL::assist::variantListToVector (const QVariantList &list)
 Converts data from list vector into an std::vector<T>. More...
 

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).

◆ variantListToVector()

template<typename T >
std::vector<T> CTL::assist::variantListToVector ( const QVariantList &  list)

Converts data from list vector into an std::vector<T>.

This uses qvariant_cast<T> of values in list to convert them to the target type.