#include <rtkReg23ProjectionGeometry.h>
{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.
Definition at line 63 of file rtkReg23ProjectionGeometry.h.
Inheritance diagram for rtk::Reg23ProjectionGeometry:
Collaboration diagram for rtk::Reg23ProjectionGeometry: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 () |
| using rtk::Reg23ProjectionGeometry::ConstPointer = itk::SmartPointer<const Self> |
Definition at line 72 of file rtkReg23ProjectionGeometry.h.
Definition at line 71 of file rtkReg23ProjectionGeometry.h.
General type alias
Definition at line 69 of file rtkReg23ProjectionGeometry.h.
Definition at line 70 of file rtkReg23ProjectionGeometry.h.
|
protected |
Standard constructor.
|
overrideprotected |
Destructor.
| 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.
| sourcePosition | absolute position of the point source S in WCS |
| detectorPosition | absolute position of the detector origin R in WCS |
| detectorRowVector | absolute direction vector indicating the orientation of the detector's rows r (sometimes referred to as v1) |
| detectorColumnVector | absolute direction vector indicating the orientation of the detector's columns c (sometimes referred to as v2) |
|
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 >.
|
static |
Method for creation through the object factory.