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

#include <rtkReg23ProjectionGeometry.h>

Detailed Description

{A simple utility class which makes the REG23 projection geometry compatible with RTK's geometry.}

REG23 geometry (open-radART, plastimatch) is very simplicistic: a perspective projection is defined by a source position (S) in world coordinate system (WCS), a detector position (R) in WCS and the detector orientation in WCS by the detector row vector (r) and the detector column vector (c).

In order to make RTK aware of this geometry, the parameters mentioned above have to be brought into RTK's native geometry format. This is achieved by deriving from RTK's circular 3D projection geometry class and adding a new dedicated method for adding a REG23 projection. Internally, this method converts the S,R,r,c set into Euler angles and offsets as required by RTK's native projection geometry definition format.

Warning
{The detector offset and direction is fully modeled by the resultant RTK geometry entry. This means that the projection stack input into back- projection filters or forward-projectors is expected to have zero-origin and identity-direction!}
See also
rtk::ThreeDCircularProjectionGeometry
Test
{TestReg23ProjectionGeometry.cxx}
Author
phil steininger
Version
1.0

Definition at line 63 of file rtkReg23ProjectionGeometry.h.

+ Inheritance diagram for rtk::Reg23ProjectionGeometry:
+ Collaboration diagram for rtk::Reg23ProjectionGeometry:

Public Types

using ConstPointer = itk::SmartPointer<const Self>
 
using Pointer = itk::SmartPointer<Self>
 
using Self = Reg23ProjectionGeometry
 
using Superclass = rtk::ThreeDCircularProjectionGeometry
 
- Public Types inherited from rtk::ThreeDCircularProjectionGeometry
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 AddReg23Projection (const PointType &sourcePosition, const PointType &detectorPosition, const VectorType &detectorRowVector, const VectorType &detectorColumnVector)
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
- Public Member Functions inherited from rtk::ThreeDCircularProjectionGeometry
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 Pointer New ()
 
- Static Public Member Functions inherited from rtk::ThreeDCircularProjectionGeometry
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

 Reg23ProjectionGeometry ()
 
 ~Reg23ProjectionGeometry () override
 
- Protected Member Functions inherited from rtk::ThreeDCircularProjectionGeometry
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 ()
 

Additional Inherited Members

- Protected Attributes inherited from rtk::ThreeDCircularProjectionGeometry
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

◆ Pointer

◆ Self

General type alias

Definition at line 69 of file rtkReg23ProjectionGeometry.h.

◆ Superclass

Constructor & Destructor Documentation

◆ Reg23ProjectionGeometry()

rtk::Reg23ProjectionGeometry::Reg23ProjectionGeometry ( )
protected

Standard constructor.

◆ ~Reg23ProjectionGeometry()

rtk::Reg23ProjectionGeometry::~Reg23ProjectionGeometry ( )
overrideprotected

Destructor.

Member Function Documentation

◆ AddReg23Projection()

bool rtk::Reg23ProjectionGeometry::AddReg23Projection ( 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

◆ CreateAnother()

virtual::itk::LightObject::Pointer rtk::Reg23ProjectionGeometry::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 >.

◆ New()

static Pointer rtk::Reg23ProjectionGeometry::New ( )
static

Method for creation through the object factory.


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