Skip to content

Commit

Permalink
DOC: Better description for the addProjection method for a parallel g…
Browse files Browse the repository at this point in the history
…eometry
  • Loading branch information
Mikhail Polkovnikov committed Jul 22, 2022
1 parent 4a6dcd0 commit 6a1a804
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions include/rtkThreeDCircularProjectionGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,31 @@ class RTK_EXPORT ThreeDCircularProjectionGeometry : public ProjectionGeometry<3>
* 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.
*
* \warning For parallel geometry the matrix has a special form
* \note The projection matrix has a special form for a parallel geometry.
*
* | R11 R12 R13 -ProjectionOffsetX |
* Mp =| R21 R22 R23 -ProjectionOffsetY |
* | 0 0 0 1 |
* | Column-1 | Column-2 | Column-3 | Column-4 |
* |:--------:|:--------:|:--------:|:------------------:|
* | R11 | R12 | R13 | -ProjectionOffsetX |
* | R21 | R22 | R23 | -ProjectionOffsetY |
* | 0 | 0 | 0 | 1 |
*
* where
*
* | R11 R12 R13 |
* | R21 R22 R23 | - cropped rotation 3x3 matrix
* | 0 0 0 |
* | Column-1 | Column-2 | Column-3 |
* |:--------:|:--------:|:--------:|
* | R11 | R12 | R13 |
* | R21 | R22 | R23 |
* | 0 | 0 | 0 |
*
* outOfPlaneAngle must be within (-90, 90) degrees range,
* otherwise the rotation angles could be miscalculated.
* 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.
*
* If projection matrix is for parallel geometry, then SID is set to 1000. mm
*/
bool
AddProjection(const HomogeneousProjectionMatrixType & pMat);
Expand Down

0 comments on commit 6a1a804

Please sign in to comment.