19#ifndef rtkThreeDCircularProjectionGeometry_h
20#define rtkThreeDCircularProjectionGeometry_h
80 double projOffsetX = 0.,
81 double projOffsetY = 0.,
82 double outOfPlaneAngle = 0.,
83 double inPlaneAngle = 0.,
84 double sourceOffsetX = 0.,
85 double sourceOffsetY = 0.);
92 double projOffsetX = 0.,
93 double projOffsetY = 0.,
94 double outOfPlaneAngle = 0.,
95 double inPlaneAngle = 0.,
96 double sourceOffsetX = 0.,
97 double sourceOffsetY = 0.);
155 const std::vector<double> &
160 const std::vector<double> &
165 const std::vector<double> &
170 const std::vector<double> &
175 const std::vector<double> &
180 const std::vector<double> &
185 const std::vector<double> &
190 const std::vector<double> &
195 const std::vector<double> &
204 const std::vector<double> &
217 static std::multimap<double, unsigned int>
222 static std::map<double, unsigned int>
252 const std::vector<TwoDHomogeneousMatrixType> &
257 TwoDHomogeneousMatrixType
263 const std::vector<ThreeDHomogeneousMatrixType> &
268 ThreeDHomogeneousMatrixType
274 const std::vector<ThreeDHomogeneousMatrixType> &
279 ThreeDHomogeneousMatrixType
285 const std::vector<Superclass::MatrixType> &
290 Superclass::MatrixType
297 const std::vector<double> &
302 const std::vector<double> &
307 const std::vector<double> &
312 const std::vector<double> &
365 itkGetConstMacro(RadiusCylindricalDetector,
double);
369 itkGetConstMacro(VerifyAnglesTolerance,
double);
372 itkGetConstMacro(FixAnglesTolerance,
double);
422 double gantryAngleRAD,
423 double inPlaneAngleRAD,
446 double & gantryAngleRAD,
447 double & inPlaneAngleRAD,
SmartPointer< Self > Pointer
A templated class holding a M x N size Matrix.
virtual void Modified() const
A templated class holding a geometric point in n-Dimensional space.
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
typename itk::Matrix< double, TDimension, TDimension+1 > MatrixType
ProjectionGeometry()=default
bool FixAngles(double &outOfPlaneAngleRAD, double &gantryAngleRAD, double &inPlaneAngleRAD, const Matrix3x3Type &referenceMatrix) const
void SetCollimationOfLastProjection(double uinf, double usup, double vinf, double vsup)
double m_FixAnglesTolerance
static std::map< double, unsigned int > GetUniqueSortedAngles(const std::vector< double > &angles)
std::vector< double > m_CollimationVInf
bool AddProjection(const PointType &sourcePosition, const PointType &detectorPosition, const VectorType &detectorRowVector, const VectorType &detectorColumnVector)
Add a REG23-based geometry set to the RTK projections list.
static double ConvertAngleBetweenMinusAndPlusPIRadians(double a)
itk::SmartPointer< const Self > ConstPointer
const std::vector< double > & GetSourceOffsetsX() const
itk::Vector< double, 3 > VectorType
static Superclass::MatrixType ComputeProjectionMagnificationMatrix(double sdd, double sid)
static ThreeDHomogeneousMatrixType ComputeTranslationHomogeneousMatrix(double transX, double transY, double transZ)
void AddProjection(double sid, double sdd, double gantryAngle, double projOffsetX=0., double projOffsetY=0., double outOfPlaneAngle=0., double inPlaneAngle=0., double sourceOffsetX=0., double sourceOffsetY=0.)
const std::vector< double > & GetSourceToDetectorDistances() const
std::vector< double > m_CollimationUInf
virtual void AddMagnificationMatrix(const Superclass::MatrixType &m)
const std::vector< double > & GetCollimationVInf() const
std::vector< double > m_ProjectionOffsetsY
std::vector< double > m_SourceOffsetsY
std::vector< double > m_InPlaneAngles
TwoDHomogeneousMatrixType GetProjectionTranslationMatrix(const unsigned int i) const
std::vector< double > m_SourceToIsocenterDistances
const std::vector< double > & GetCollimationUSup() const
double m_RadiusCylindricalDetector
double ToUntiltedCoordinateAtIsocenter(unsigned int noProj, double tiltedCoord) const
const std::vector< double > & GetInPlaneAngles() const
const std::vector< ThreeDHomogeneousMatrixType > & GetRotationMatrices() const
itk::SmartPointer< Self > Pointer
std::vector< double > m_GantryAngles
itk::Matrix< double, 4, 4 > ThreeDHomogeneousMatrixType
itk::LightObject::Pointer InternalClone() const override
const std::vector< double > & GetSourceOffsetsY() const
itk::Matrix< double, 3, 3 > TwoDHomogeneousMatrixType
itk::Matrix< double, 3, 3 > Matrix3x3Type
static ThreeDHomogeneousMatrixType ComputeRotationHomogeneousMatrix(double angleX, double angleY, double angleZ)
Superclass::MatrixType GetMagnificationMatrices(const unsigned int i) const
Superclass::MatrixType HomogeneousProjectionMatrixType
virtual void AddProjectionTranslationMatrix(const TwoDHomogeneousMatrixType &m)
const std::vector< TwoDHomogeneousMatrixType > & GetProjectionTranslationMatrices() const
std::vector< double > m_SourceToDetectorDistances
virtual void AddRotationMatrix(const ThreeDHomogeneousMatrixType &m)
~ThreeDCircularProjectionGeometry() override=default
std::vector< ThreeDHomogeneousMatrixType > m_RotationMatrices
std::vector< ThreeDHomogeneousMatrixType > m_SourceTranslationMatrices
bool AddProjection(const HomogeneousProjectionMatrixType &pMat)
const std::vector< double > & GetCollimationUInf() const
HomogeneousVectorType GetSourcePosition(unsigned int i) const
static TwoDHomogeneousMatrixType ComputeTranslationHomogeneousMatrix(double transX, double transY)
std::vector< double > GetTiltAngles() const
ThreeDCircularProjectionGeometry Self
ThreeDHomogeneousMatrixType GetRotationMatrix(const unsigned int i) const
itk::Point< double, 3 > PointType
const std::vector< double > & GetGantryAngles() const
static double ConvertAngleBetween0And360Degrees(double a)
const std::vector< double > & GetSourceAngles() const
static double ConvertAngleBetween0And2PIRadians(double a)
virtual void AddProjectionInRadians(double sid, double sdd, double gantryAngle, double projOffsetX=0., double projOffsetY=0., double outOfPlaneAngle=0., double inPlaneAngle=0., double sourceOffsetX=0., double sourceOffsetY=0.)
std::vector< double > m_CollimationVSup
const std::vector< double > & GetProjectionOffsetsX() const
ThreeDHomogeneousMatrixType GetProjectionCoordinatesToFixedSystemMatrix(unsigned int i) const
std::vector< double > m_ProjectionOffsetsX
const std::vector< double > & GetSourceToIsocenterDistances() const
const std::vector< ThreeDHomogeneousMatrixType > & GetSourceTranslationMatrices() const
static std::multimap< double, unsigned int > GetSortedAngles(const std::vector< double > &angles)
ProjectionGeometry< 3 > Superclass
std::vector< double > m_OutOfPlaneAngles
std::vector< Superclass::MatrixType > m_MagnificationMatrices
const std::vector< double > & GetProjectionOffsetsY() const
std::vector< double > m_CollimationUSup
itk::Vector< double, 4 > HomogeneousVectorType
std::vector< TwoDHomogeneousMatrixType > m_ProjectionTranslationMatrices
ThreeDHomogeneousMatrixType GetSourceTranslationMatrices(const unsigned int i) const
std::vector< double > m_SourceAngles
virtual void AddSourceTranslationMatrix(const ThreeDHomogeneousMatrixType &m)
std::vector< double > m_SourceOffsetsX
bool VerifyAngles(double outOfPlaneAngleRAD, double gantryAngleRAD, double inPlaneAngleRAD, const Matrix3x3Type &referenceMatrix) const
std::vector< double > GetAngularGapsWithNext(const std::vector< double > &angles) const
ThreeDHomogeneousMatrixType GetProjectionCoordinatesToDetectorSystemMatrix(unsigned int i) const
double m_VerifyAnglesTolerance
const std::vector< double > & GetOutOfPlaneAngles() const
std::vector< double > GetAngularGaps(const std::vector< double > &angles)
ThreeDCircularProjectionGeometry()
const std::vector< double > & GetCollimationVSup() const
const std::vector< Superclass::MatrixType > & GetMagnificationMatrices() const
#define itkSetMacro(name, type)