CTL  0.6.1
Computed Tomography Library
orthogonalsubsetgenerator.h
1 #ifndef CTL_ORTHOGONALSUBSETGENERATOR_H
2 #define CTL_ORTHOGONALSUBSETGENERATOR_H
3 
4 #include "abstractsubsetgenerator.h"
5 #include "mat/matrix.h"
6 
7 namespace CTL {
8 
74 {
76 
77  protected: std::vector<ProjectionDataView> generateSubsetsImpl(uint iteration) const override;
78 
79 public:
81  // AbstractSubsetGenerator interface
82  void setSetup(const AcquisitionSetup& setup) override;
83 
84 private:
85  struct Candidate
86  {
87  mat::Matrix<3,1> direction;
88  uint viewID;
89  };
90 
91  std::vector<mat::Matrix<3,1>> _directionVectors;
92 
93  ProjectionDataView createSubset(std::vector<Candidate>& candidates, uint subsetSize) const;
94 };
95 
96 } // namespace CTL
97 
98 #endif // CTL_ORTHOGONALSUBSETGENERATOR_H
std::vector< ProjectionDataView > generateSubsetsImpl(uint iteration) const override
Implementation of the subset generation routine.
Definition: orthogonalsubsetgenerator.cpp:77
void setSetup(const AcquisitionSetup &setup) override
Sets the AcquisitionSetup that belongs to the projection data to setup.
Definition: orthogonalsubsetgenerator.cpp:111
uint nbSubsets() const
Returns the number of subsets that are generated.
Definition: abstractsubsetgenerator.cpp:224
The OrthogonalSubsetGenerator class provides an implementation of subset generation considering real ...
Definition: orthogonalsubsetgenerator.h:73
Holds a CTSystem together with the information about the system settings for all views from which pro...
Definition: acquisitionsetup.h:175
The ProjectionDataView class is a read-only wrapper for a reference to ProjectionData.
Definition: projectiondataview.h:51
Definition: orthogonalsubsetgenerator.h:85
ProjectionDataView createSubset(std::vector< Candidate > &candidates, uint subsetSize) const
Creates a subset from the data managed by this instance.
Definition: orthogonalsubsetgenerator.cpp:133
#define CTL_TYPE_ID(newIndex)
Definition: serializationinterface.h:189
unsigned int uint
Qt style alias for unsigned int.
Definition: modulelayout.h:6
The AbstractFixedSizeSubsetGenerator class specializes the AbstractSubsetGenerator for generators tha...
Definition: abstractsubsetgenerator.h:117
std::vector< mat::Matrix< 3, 1 > > _directionVectors
source-to-detector vectors of the latest setup set
Definition: orthogonalsubsetgenerator.h:91