ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::ThreeDCircularProjectionGeometry Class Reference

#include <rtkThreeDCircularProjectionGeometry.h>

Detailed Description

Projection geometry for a source and a 2-D flat panel.

The source and the detector rotate around a circle paremeterized with the SourceToDetectorDistance and the SourceToIsocenterDistance. The position of each projection along this circle is parameterized by the GantryAngle. The detector can be shifted in plane with the ProjectionOffsetsX and the ProjectionOffsetsY. It can be also rotated with InPlaneAngles and OutOfPlaneAngles. All angles are in radians except for the function AddProjection that takes angles in degrees. The source can be shifted in plane with the SourceOffsetsX and the SourceOffsetsY.

If SDD equals 0., then one is dealing with a parallel geometry.

See https://docs.openrtk.org/en/latest/documentation/docs/Geometry.html for more information.

Author
Simon Rit

Definition at line 51 of file rtkThreeDCircularProjectionGeometry.h.

+ Inheritance diagram for rtk::ThreeDCircularProjectionGeometry:
+ Collaboration diagram for rtk::ThreeDCircularProjectionGeometry:

Public Types

using ConstPointer = itk::SmartPointer<const Self>
 
using HomogeneousProjectionMatrixType = Superclass::MatrixType
 
using HomogeneousVectorType = itk::Vector<double, 4>
 
using Matrix3x3Type = itk::Matrix<double, 3, 3>
 
using Pointer = itk::SmartPointer<Self>
 
using PointType = itk::Point<double, 3>
 
using Self = ThreeDCircularProjectionGeometry
 
using Superclass = ProjectionGeometry<3>
 
using ThreeDHomogeneousMatrixType = itk::Matrix<double, 4, 4>
 
using TwoDHomogeneousMatrixType = itk::Matrix<double, 3, 3>
 
using VectorType = itk::Vector<double, 3>
 
- Public Types inherited from rtk::ProjectionGeometry< 3 >
using ConstPointer
 
using MatrixType
 
using Pointer
 
using PointType
 
using Self
 
using SizeType
 
using SpacingType
 
using Superclass
 
- Public Types inherited from itk::DataObject
using ConstPointer = SmartPointer<const Self>
 
using DataObjectIdentifierType = std::string
 
using DataObjectPointerArraySizeType = std::vector<Pointer>::size_type
 
using Pointer = SmartPointer<Self>
 
using Self = DataObject
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

bool AddProjection (const HomogeneousProjectionMatrixType &pMat)
 
bool AddProjection (const PointType &sourcePosition, const PointType &detectorPosition, const VectorType &detectorRowVector, const VectorType &detectorColumnVector)
 
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.)
 
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.)
 
void Clear () override
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
std::vector< double > GetAngularGaps (const std::vector< double > &angles)
 
std::vector< double > GetAngularGapsWithNext (const std::vector< double > &angles) const
 
const std::vector< double > & GetCollimationUInf () const
 
const std::vector< double > & GetCollimationUSup () const
 
const std::vector< double > & GetCollimationVInf () const
 
const std::vector< double > & GetCollimationVSup () const
 
virtual double GetFixAnglesTolerance () const
 
const std::vector< double > & GetGantryAngles () const
 
const std::vector< double > & GetInPlaneAngles () const
 
const std::vector< Superclass::MatrixType > & GetMagnificationMatrices () const
 
Superclass::MatrixType GetMagnificationMatrices (const unsigned int i) const
 
const std::vector< double > & GetOutOfPlaneAngles () const
 
ThreeDHomogeneousMatrixType GetProjectionCoordinatesToDetectorSystemMatrix (unsigned int i) const
 
ThreeDHomogeneousMatrixType GetProjectionCoordinatesToFixedSystemMatrix (unsigned int i) const
 
const std::vector< double > & GetProjectionOffsetsX () const
 
const std::vector< double > & GetProjectionOffsetsY () const
 
const std::vector< TwoDHomogeneousMatrixType > & GetProjectionTranslationMatrices () const
 
TwoDHomogeneousMatrixType GetProjectionTranslationMatrix (const unsigned int i) const
 
virtual double GetRadiusCylindricalDetector () const
 
const std::vector< ThreeDHomogeneousMatrixType > & GetRotationMatrices () const
 
ThreeDHomogeneousMatrixType GetRotationMatrix (const unsigned int i) const
 
const std::vector< double > & GetSourceAngles () const
 
const std::vector< double > & GetSourceOffsetsX () const
 
const std::vector< double > & GetSourceOffsetsY () const
 
HomogeneousVectorType GetSourcePosition (unsigned int i) const
 
const std::vector< double > & GetSourceToDetectorDistances () const
 
const std::vector< double > & GetSourceToIsocenterDistances () const
 
const std::vector< ThreeDHomogeneousMatrixType > & GetSourceTranslationMatrices () const
 
ThreeDHomogeneousMatrixType GetSourceTranslationMatrices (const unsigned int i) const
 
std::vector< double > GetTiltAngles () const
 
virtual double GetVerifyAnglesTolerance () const
 
void SetCollimationOfLastProjection (double uinf, double usup, double vinf, double vsup)
 
virtual void SetFixAnglesTolerance (double _arg)
 
virtual void SetRadiusCylindricalDetector (double _arg)
 
virtual void SetVerifyAnglesTolerance (double _arg)
 
double ToUntiltedCoordinateAtIsocenter (unsigned int noProj, double tiltedCoord) const
 
- Public Member Functions inherited from rtk::ProjectionGeometry< 3 >
const std::vector< MatrixType > & GetMatrices () const
 
const std::vector< MatrixType > & GetMatrices () const
 
MatrixType GetMatrix (const unsigned int i) const
 
MatrixType GetMatrix (const unsigned int i) const
 
- Public Member Functions inherited from itk::DataObject
virtual void CopyInformation (const DataObject *)
 
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const char * GetNameOfClass () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointer< ProcessObject > GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierType & GetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void Graft (const DataObject *)
 
virtual void Initialize ()
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
virtual void SetRequestedRegion (const DataObject *)
 
virtual void SetRequestedRegionToLargestPossibleRegion ()
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
virtual void UpdateOutputData ()
 
virtual void UpdateOutputInformation ()
 
void UpdateSource () const
 
virtual bool VerifyRequestedRegion ()
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeType & GetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStamp & GetRealTimeStamp () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Superclass::MatrixType ComputeProjectionMagnificationMatrix (double sdd, double sid)
 
static ThreeDHomogeneousMatrixType ComputeRotationHomogeneousMatrix (double angleX, double angleY, double angleZ)
 
static TwoDHomogeneousMatrixType ComputeTranslationHomogeneousMatrix (double transX, double transY)
 
static ThreeDHomogeneousMatrixType ComputeTranslationHomogeneousMatrix (double transX, double transY, double transZ)
 
static double ConvertAngleBetween0And2PIRadians (double a)
 
static double ConvertAngleBetween0And360Degrees (double a)
 
static double ConvertAngleBetweenMinusAndPlusPIRadians (double a)
 
static std::multimap< double, unsigned int > GetSortedAngles (const std::vector< double > &angles)
 
static std::map< double, unsigned int > GetUniqueSortedAngles (const std::vector< double > &angles)
 
static Pointer New ()
 
- Static Public Member Functions inherited from rtk::ProjectionGeometry< 3 >
static Pointer New ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from itk::DataObject
static bool GetGlobalReleaseDataFlag ()
 
static void GlobalReleaseDataFlagOff ()
 
static void GlobalReleaseDataFlagOn ()
 
static Pointer New ()
 
static void SetGlobalReleaseDataFlag (bool val)
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

virtual void AddMagnificationMatrix (const Superclass::MatrixType &m)
 
virtual void AddProjectionTranslationMatrix (const TwoDHomogeneousMatrixType &m)
 
virtual void AddRotationMatrix (const ThreeDHomogeneousMatrixType &m)
 
virtual void AddSourceTranslationMatrix (const ThreeDHomogeneousMatrixType &m)
 
bool FixAngles (double &outOfPlaneAngleRAD, double &gantryAngleRAD, double &inPlaneAngleRAD, const Matrix3x3Type &referenceMatrix) const
 
itk::LightObject::Pointer InternalClone () const override
 
 ThreeDCircularProjectionGeometry ()
 
bool VerifyAngles (double outOfPlaneAngleRAD, double gantryAngleRAD, double inPlaneAngleRAD, const Matrix3x3Type &referenceMatrix) const
 
 ~ThreeDCircularProjectionGeometry () override=default
 
- Protected Member Functions inherited from rtk::ProjectionGeometry< 3 >
virtual void AddMatrix (const MatrixType &m)
 
virtual void AddMatrix (const MatrixType &m)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ProjectionGeometry ()=default
 
 ProjectionGeometry ()=default
 
 ~ProjectionGeometry () override=default
 
 ~ProjectionGeometry () override=default
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
virtual void PropagateResetPipeline ()
 
 ~DataObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Protected Attributes

std::vector< double > m_CollimationUInf
 
std::vector< double > m_CollimationUSup
 
std::vector< double > m_CollimationVInf
 
std::vector< double > m_CollimationVSup
 
double m_FixAnglesTolerance { 1e-6 }
 
std::vector< double > m_GantryAngles
 
std::vector< double > m_InPlaneAngles
 
std::vector< Superclass::MatrixType > m_MagnificationMatrices
 
std::vector< double > m_OutOfPlaneAngles
 
std::vector< double > m_ProjectionOffsetsX
 
std::vector< double > m_ProjectionOffsetsY
 
std::vector< TwoDHomogeneousMatrixType > m_ProjectionTranslationMatrices
 
double m_RadiusCylindricalDetector { 0. }
 
std::vector< ThreeDHomogeneousMatrixType > m_RotationMatrices
 
std::vector< double > m_SourceAngles
 
std::vector< double > m_SourceOffsetsX
 
std::vector< double > m_SourceOffsetsY
 
std::vector< double > m_SourceToDetectorDistances
 
std::vector< double > m_SourceToIsocenterDistances
 
std::vector< ThreeDHomogeneousMatrixType > m_SourceTranslationMatrices
 
double m_VerifyAnglesTolerance { 1e-4 }
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

◆ HomogeneousProjectionMatrixType

◆ HomogeneousVectorType

◆ Matrix3x3Type

◆ Pointer

◆ PointType

◆ Self

◆ Superclass

◆ ThreeDHomogeneousMatrixType

◆ TwoDHomogeneousMatrixType

◆ VectorType

Constructor & Destructor Documentation

◆ ThreeDCircularProjectionGeometry()

rtk::ThreeDCircularProjectionGeometry::ThreeDCircularProjectionGeometry ( )
protected

◆ ~ThreeDCircularProjectionGeometry()

rtk::ThreeDCircularProjectionGeometry::~ThreeDCircularProjectionGeometry ( )
overrideprotecteddefault

Member Function Documentation

◆ AddMagnificationMatrix()

virtual void rtk::ThreeDCircularProjectionGeometry::AddMagnificationMatrix ( const Superclass::MatrixType & m)
inlineprotectedvirtual

◆ AddProjection() [1/3]

bool rtk::ThreeDCircularProjectionGeometry::AddProjection ( const HomogeneousProjectionMatrixType & pMat)

Add projection from a projection matrix. A projection matrix is defined up to a scaling factor. The function here Assumes that the input matrix pMat is normalized such that pMat*(x,y,z,1)'=(u,v,1)'. This code assumes that the SourceToDetectorDistance is positive. If the projection is for parallel geometry, then the SourceToIsocenterDistance is set to 1000 mm.

Note
The projection matrix has a special form for a parallel geometry.
Column-1 Column-2 Column-3 Column-4
R11 R12 R13 -ProjectionOffsetX
R21 R22 R23 -ProjectionOffsetY
0 0 0 1

where

Column-1 Column-2 Column-3
R11 R12 R13
R21 R22 R23
0 0 0

is a cropped 3x3 rotation matrix.

Warning
The outOfPlaneAngle for a parallel geometry must be within (-90, 90) degrees range, otherwise the rotation angles could be miscalculated.

◆ AddProjection() [2/3]

bool rtk::ThreeDCircularProjectionGeometry::AddProjection ( const PointType & sourcePosition,
const PointType & detectorPosition,
const VectorType & detectorRowVector,
const VectorType & detectorColumnVector )

Add a REG23-based geometry set to the RTK projections list.

Parameters
sourcePositionabsolute position of the point source S in WCS
detectorPositionabsolute position of the detector origin R in WCS
detectorRowVectorabsolute direction vector indicating the orientation of the detector's rows r (sometimes referred to as v1)
detectorColumnVectorabsolute direction vector indicating the orientation of the detector's columns c (sometimes referred to as v2)
Returns
TRUE if the projection could be added to the RTK projections list

◆ AddProjection() [3/3]

void rtk::ThreeDCircularProjectionGeometry::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. )

Add projection to geometry. One projection is defined with the rotation angle in degrees and the in-plane translation of the detector in physical units (e.g. mm). The rotation axis is assumed to be (0,1,0).

◆ AddProjectionInRadians()

virtual void rtk::ThreeDCircularProjectionGeometry::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. )
virtual

Idem with angles in radians.

◆ AddProjectionTranslationMatrix()

virtual void rtk::ThreeDCircularProjectionGeometry::AddProjectionTranslationMatrix ( const TwoDHomogeneousMatrixType & m)
inlineprotectedvirtual

◆ AddRotationMatrix()

virtual void rtk::ThreeDCircularProjectionGeometry::AddRotationMatrix ( const ThreeDHomogeneousMatrixType & m)
inlineprotectedvirtual

◆ AddSourceTranslationMatrix()

virtual void rtk::ThreeDCircularProjectionGeometry::AddSourceTranslationMatrix ( const ThreeDHomogeneousMatrixType & m)
inlineprotectedvirtual

◆ Clear()

void rtk::ThreeDCircularProjectionGeometry::Clear ( )
overridevirtual

Empty the geometry object.

Reimplemented from rtk::ProjectionGeometry< 3 >.

◆ ComputeProjectionMagnificationMatrix()

static Superclass::MatrixType rtk::ThreeDCircularProjectionGeometry::ComputeProjectionMagnificationMatrix ( double sdd,
double sid )
static

Compute the magnification matrix from 3D to 2D given a source to detector and to isocenter distance.

◆ ComputeRotationHomogeneousMatrix()

static ThreeDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::ComputeRotationHomogeneousMatrix ( double angleX,
double angleY,
double angleZ )
static

Compute rotation matrix in homogeneous coordinates from 3 angles in degrees. The convention is the default in itk, i.e. ZXY of Euler angles.

◆ ComputeTranslationHomogeneousMatrix() [1/2]

static TwoDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::ComputeTranslationHomogeneousMatrix ( double transX,
double transY )
static

Compute translation matrix in homogeneous coordinates from translation parameters.

◆ ComputeTranslationHomogeneousMatrix() [2/2]

static ThreeDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::ComputeTranslationHomogeneousMatrix ( double transX,
double transY,
double transZ )
static

◆ ConvertAngleBetween0And2PIRadians()

static double rtk::ThreeDCircularProjectionGeometry::ConvertAngleBetween0And2PIRadians ( double a)
static

This function wraps an angle value between 0 and 2*PI radians.

◆ ConvertAngleBetween0And360Degrees()

static double rtk::ThreeDCircularProjectionGeometry::ConvertAngleBetween0And360Degrees ( double a)
static

This function wraps an angle value between 0 and 360 degrees.

◆ ConvertAngleBetweenMinusAndPlusPIRadians()

static double rtk::ThreeDCircularProjectionGeometry::ConvertAngleBetweenMinusAndPlusPIRadians ( double a)
static

This function wraps an angle value between -PI and PI radians.

◆ CreateAnother()

virtual::itk::LightObject::Pointer rtk::ThreeDCircularProjectionGeometry::CreateAnother ( ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from rtk::ProjectionGeometry< 3 >.

◆ FixAngles()

bool rtk::ThreeDCircularProjectionGeometry::FixAngles ( double & outOfPlaneAngleRAD,
double & gantryAngleRAD,
double & inPlaneAngleRAD,
const Matrix3x3Type & referenceMatrix ) const
protected

Try to fix Euler angles, which were found incorrect, to match the specified reference matrix.

Parameters
[out]outOfPlaneAngleRADout-of-plane angle of the detector in radians; if this method returns TRUE, this angle can be safely considered
[out]gantryAngleRADgantry angle of the detector in radians; if this method returns TRUE, this angle can be safely considered
[out]inPlaneAngleRADin-plane angle of the detector in radians; if this method returns TRUE, this angle can be safely considered
referenceMatrixreference matrix which reflects detector orientation in WCS
Returns
TRUE if the angles were fixed and can be safely considered; if FALSE is returned, the method could not find angles which generate the desired matrix with respect to ZXY Euler order and the internal tolerance level
See also
VerifyAngles()
Warning
{Internally, the matrix check is performed with a tolerance level of 1e-6!}

◆ GetAngularGaps()

std::vector< double > rtk::ThreeDCircularProjectionGeometry::GetAngularGaps ( const std::vector< double > & angles)

Get for each projection half the angular distance between the previous and the next projection in radians.

◆ GetAngularGapsWithNext()

std::vector< double > rtk::ThreeDCircularProjectionGeometry::GetAngularGapsWithNext ( const std::vector< double > & angles) const

Get for each projection the angular gaps with next projection in radians.

◆ GetCollimationUInf()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetCollimationUInf ( ) const
inline

Get the vector containing the collimation jaw parameters.

Definition at line 298 of file rtkThreeDCircularProjectionGeometry.h.

References m_CollimationUInf.

◆ GetCollimationUSup()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetCollimationUSup ( ) const
inline

Definition at line 303 of file rtkThreeDCircularProjectionGeometry.h.

References m_CollimationUSup.

◆ GetCollimationVInf()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetCollimationVInf ( ) const
inline

Definition at line 308 of file rtkThreeDCircularProjectionGeometry.h.

References m_CollimationVInf.

◆ GetCollimationVSup()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetCollimationVSup ( ) const
inline

Definition at line 313 of file rtkThreeDCircularProjectionGeometry.h.

References m_CollimationVSup.

◆ GetFixAnglesTolerance()

virtual double rtk::ThreeDCircularProjectionGeometry::GetFixAnglesTolerance ( ) const
virtual

◆ GetGantryAngles()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetGantryAngles ( ) const
inline

Get the vector of geometry parameters (one per projection). Angles are in radians.

Definition at line 156 of file rtkThreeDCircularProjectionGeometry.h.

References m_GantryAngles.

◆ GetInPlaneAngles()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetInPlaneAngles ( ) const
inline

Definition at line 166 of file rtkThreeDCircularProjectionGeometry.h.

References m_InPlaneAngles.

◆ GetMagnificationMatrices() [1/2]

const std::vector< Superclass::MatrixType > & rtk::ThreeDCircularProjectionGeometry::GetMagnificationMatrices ( ) const
inline

Definition at line 286 of file rtkThreeDCircularProjectionGeometry.h.

References m_MagnificationMatrices.

◆ GetMagnificationMatrices() [2/2]

Superclass::MatrixType rtk::ThreeDCircularProjectionGeometry::GetMagnificationMatrices ( const unsigned int i) const
inline

Definition at line 291 of file rtkThreeDCircularProjectionGeometry.h.

References m_MagnificationMatrices.

◆ GetOutOfPlaneAngles()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetOutOfPlaneAngles ( ) const
inline

Definition at line 161 of file rtkThreeDCircularProjectionGeometry.h.

References m_OutOfPlaneAngles.

◆ GetProjectionCoordinatesToDetectorSystemMatrix()

ThreeDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::GetProjectionCoordinatesToDetectorSystemMatrix ( unsigned int i) const

Compute the ith matrix to convert projection coordinates to coordinates in the detector coordinate system (u,v,u^v). Note that the matrix is square but the third element of the projection coordinates is ignored because projection coordinates are 2D. This is meant to manipulate more easily stack of projection images.

◆ GetProjectionCoordinatesToFixedSystemMatrix()

ThreeDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::GetProjectionCoordinatesToFixedSystemMatrix ( unsigned int i) const

Compute the ith matrix to convert projection coordinates to coordinates in the fixed coordinate system. Note that the matrix is square but the third element of the projection coordinates is ignored because projection coordinates are 2D. This is meant to manipulate more easily stack of projection images.

◆ GetProjectionOffsetsX()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetProjectionOffsetsX ( ) const
inline

Definition at line 191 of file rtkThreeDCircularProjectionGeometry.h.

References m_ProjectionOffsetsX.

◆ GetProjectionOffsetsY()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetProjectionOffsetsY ( ) const
inline

Definition at line 196 of file rtkThreeDCircularProjectionGeometry.h.

References m_ProjectionOffsetsY.

◆ GetProjectionTranslationMatrices()

const std::vector< TwoDHomogeneousMatrixType > & rtk::ThreeDCircularProjectionGeometry::GetProjectionTranslationMatrices ( ) const
inline

Get the vector containing the sub matrices used to compute the main projection matrix.

Definition at line 253 of file rtkThreeDCircularProjectionGeometry.h.

References m_ProjectionTranslationMatrices.

◆ GetProjectionTranslationMatrix()

TwoDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::GetProjectionTranslationMatrix ( const unsigned int i) const
inline

◆ GetRadiusCylindricalDetector()

virtual double rtk::ThreeDCircularProjectionGeometry::GetRadiusCylindricalDetector ( ) const
virtual

Accessor for the radius of curved detector. The default is 0 and it means a flat detector.

◆ GetRotationMatrices()

const std::vector< ThreeDHomogeneousMatrixType > & rtk::ThreeDCircularProjectionGeometry::GetRotationMatrices ( ) const
inline

Definition at line 264 of file rtkThreeDCircularProjectionGeometry.h.

References m_RotationMatrices.

◆ GetRotationMatrix()

ThreeDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::GetRotationMatrix ( const unsigned int i) const
inline

Definition at line 269 of file rtkThreeDCircularProjectionGeometry.h.

References m_RotationMatrices.

◆ GetSortedAngles()

static std::multimap< double, unsigned int > rtk::ThreeDCircularProjectionGeometry::GetSortedAngles ( const std::vector< double > & angles)
static

Get a multimap containing all sorted angles in radians and corresponding index.

◆ GetSourceAngles()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetSourceAngles ( ) const
inline

Get a vector containing the source angles in radians. The source angle is defined as the angle between the z-axis and the isocenter-source line projected on the central plane.

Definition at line 205 of file rtkThreeDCircularProjectionGeometry.h.

References m_SourceAngles.

◆ GetSourceOffsetsX()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetSourceOffsetsX ( ) const
inline

Definition at line 176 of file rtkThreeDCircularProjectionGeometry.h.

References m_SourceOffsetsX.

◆ GetSourceOffsetsY()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetSourceOffsetsY ( ) const
inline

Definition at line 181 of file rtkThreeDCircularProjectionGeometry.h.

References m_SourceOffsetsY.

◆ GetSourcePosition()

HomogeneousVectorType rtk::ThreeDCircularProjectionGeometry::GetSourcePosition ( unsigned int i) const

Get the source position for the ith projection in the fixed reference system and in homogeneous coordinates.

◆ GetSourceToDetectorDistances()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetSourceToDetectorDistances ( ) const
inline

◆ GetSourceToIsocenterDistances()

const std::vector< double > & rtk::ThreeDCircularProjectionGeometry::GetSourceToIsocenterDistances ( ) const
inline

◆ GetSourceTranslationMatrices() [1/2]

const std::vector< ThreeDHomogeneousMatrixType > & rtk::ThreeDCircularProjectionGeometry::GetSourceTranslationMatrices ( ) const
inline

◆ GetSourceTranslationMatrices() [2/2]

ThreeDHomogeneousMatrixType rtk::ThreeDCircularProjectionGeometry::GetSourceTranslationMatrices ( const unsigned int i) const
inline

◆ GetTiltAngles()

std::vector< double > rtk::ThreeDCircularProjectionGeometry::GetTiltAngles ( ) const

Get a vector containing the tilt angles in radians. The tilt angle is defined as the difference between -GantryAngle and the SourceAngle.

◆ GetUniqueSortedAngles()

static std::map< double, unsigned int > rtk::ThreeDCircularProjectionGeometry::GetUniqueSortedAngles ( const std::vector< double > & angles)
static

Get a map containing unique sorted angles in radians and corresponding index.

◆ GetVerifyAnglesTolerance()

virtual double rtk::ThreeDCircularProjectionGeometry::GetVerifyAnglesTolerance ( ) const
virtual

Accessor for the internal tolerance on angles.

◆ InternalClone()

itk::LightObject::Pointer rtk::ThreeDCircularProjectionGeometry::InternalClone ( ) const
overrideprotectedvirtual

Clone the geometry object in a new one.

Reimplemented from itk::LightObject.

◆ New()

static Pointer rtk::ThreeDCircularProjectionGeometry::New ( )
static

Method for creation through the object factory.

◆ SetCollimationOfLastProjection()

void rtk::ThreeDCircularProjectionGeometry::SetCollimationOfLastProjection ( double uinf,
double usup,
double vinf,
double vsup )

Set the collimation of the latest added projection (to be called after AddProjection).

◆ SetFixAnglesTolerance()

virtual void rtk::ThreeDCircularProjectionGeometry::SetFixAnglesTolerance ( double _arg)
virtual

◆ SetRadiusCylindricalDetector()

virtual void rtk::ThreeDCircularProjectionGeometry::SetRadiusCylindricalDetector ( double _arg)
virtual

◆ SetVerifyAnglesTolerance()

virtual void rtk::ThreeDCircularProjectionGeometry::SetVerifyAnglesTolerance ( double _arg)
virtual

◆ ToUntiltedCoordinateAtIsocenter()

double rtk::ThreeDCircularProjectionGeometry::ToUntiltedCoordinateAtIsocenter ( unsigned int noProj,
double tiltedCoord ) const

Changes the coordinate on the projection image to the coordinate on a virtual detector that is perpendicular to the source to isocenter line and positioned at the isocenter. It is assumed that OutOfPlaneAngle=0 and InPlaneAngle=0.

◆ VerifyAngles()

bool rtk::ThreeDCircularProjectionGeometry::VerifyAngles ( double outOfPlaneAngleRAD,
double gantryAngleRAD,
double inPlaneAngleRAD,
const Matrix3x3Type & referenceMatrix ) const
protected

Verify that the specified Euler angles in ZXY result in a rotation matrix which corresponds to the specified detector orientation. Rationale for this utility method is that in some situations numerical instabilities (e.g. if gantry=+90deg,in-plane=-90deg or vice versa, "invalid" angles may be computed using the standard ITK Euler transform) may occur.

Parameters
outOfPlaneAngleRADout-of-plane angle of the detector in radians
gantryAngleRADgantry angle of the detector in radians
inPlaneAngleRADin-plane angle of the detector in radians
referenceMatrixreference matrix which reflects detector orientation in WCS
Returns
TRUE if the angles correspond the implicitly specified final rotation matrix; if FALSE is returned, the angles should be fixed (
See also
FixAngles())
Warning
{Internally, the matrix check is performed with a tolerance level of 1e-6!}

Member Data Documentation

◆ m_CollimationUInf

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_CollimationUInf
protected

Parameters of the collimation jaws. The collimation position is with respect to the distance of the m_RotationCenter along

  • the m_RotationAxis for the m_CollimationVInf and m_CollimationVSup,
  • the m_SourceCenter ^ m_RotationAxis for the m_CollimationUInf and m_CollimationUSup. The default is +infinity (itk::NumericTraits<double>::max) is completely opened, negative values are allowed if the collimation travels beyond the m_RotationCenter.

Definition at line 477 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetCollimationUInf().

◆ m_CollimationUSup

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_CollimationUSup
protected

Definition at line 478 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetCollimationUSup().

◆ m_CollimationVInf

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_CollimationVInf
protected

Definition at line 479 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetCollimationVInf().

◆ m_CollimationVSup

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_CollimationVSup
protected

Definition at line 480 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetCollimationVSup().

◆ m_FixAnglesTolerance

double rtk::ThreeDCircularProjectionGeometry::m_FixAnglesTolerance { 1e-6 }
protected

Definition at line 490 of file rtkThreeDCircularProjectionGeometry.h.

◆ m_GantryAngles

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_GantryAngles
protected

Circular geometry parameters per projection (angles in degrees between 0 and 360).

Definition at line 456 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetGantryAngles().

◆ m_InPlaneAngles

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_InPlaneAngles
protected

Definition at line 458 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetInPlaneAngles().

◆ m_MagnificationMatrices

std::vector<Superclass::MatrixType> rtk::ThreeDCircularProjectionGeometry::m_MagnificationMatrices
protected

◆ m_OutOfPlaneAngles

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_OutOfPlaneAngles
protected

Definition at line 457 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetOutOfPlaneAngles().

◆ m_ProjectionOffsetsX

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_ProjectionOffsetsX
protected

Definition at line 464 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetProjectionOffsetsX().

◆ m_ProjectionOffsetsY

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_ProjectionOffsetsY
protected

Definition at line 465 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetProjectionOffsetsY().

◆ m_ProjectionTranslationMatrices

std::vector<TwoDHomogeneousMatrixType> rtk::ThreeDCircularProjectionGeometry::m_ProjectionTranslationMatrices
protected

Matrices to change coordiate systems.

Definition at line 483 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by AddProjectionTranslationMatrix(), GetProjectionTranslationMatrices(), and GetProjectionTranslationMatrix().

◆ m_RadiusCylindricalDetector

double rtk::ThreeDCircularProjectionGeometry::m_RadiusCylindricalDetector { 0. }
protected

Radius of curved detector. The default is 0 and it means a flat detector.

Definition at line 468 of file rtkThreeDCircularProjectionGeometry.h.

◆ m_RotationMatrices

std::vector<ThreeDHomogeneousMatrixType> rtk::ThreeDCircularProjectionGeometry::m_RotationMatrices
protected

◆ m_SourceAngles

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_SourceAngles
protected

Definition at line 459 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetSourceAngles().

◆ m_SourceOffsetsX

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_SourceOffsetsX
protected

Definition at line 461 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetSourceOffsetsX().

◆ m_SourceOffsetsY

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_SourceOffsetsY
protected

Definition at line 462 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetSourceOffsetsY().

◆ m_SourceToDetectorDistances

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_SourceToDetectorDistances
protected

Definition at line 463 of file rtkThreeDCircularProjectionGeometry.h.

Referenced by GetSourceToDetectorDistances().

◆ m_SourceToIsocenterDistances

std::vector<double> rtk::ThreeDCircularProjectionGeometry::m_SourceToIsocenterDistances
protected

◆ m_SourceTranslationMatrices

std::vector<ThreeDHomogeneousMatrixType> rtk::ThreeDCircularProjectionGeometry::m_SourceTranslationMatrices
protected

◆ m_VerifyAnglesTolerance

double rtk::ThreeDCircularProjectionGeometry::m_VerifyAnglesTolerance { 1e-4 }
protected

Internal tolerance parameters.

Definition at line 489 of file rtkThreeDCircularProjectionGeometry.h.


The documentation for this class was generated from the following file: