Skip to content

Commit

Permalink
Fix definition and calculation of source angle
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed Feb 9, 2015
1 parent 6108d05 commit b0dd888
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/rtkThreeDCircularProjectionGeometry.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ void rtk::ThreeDCircularProjectionGeometry::AddProjectionInRadians(
z.Fill(0.);
z[2] = 1.;
HomogeneousVectorType sph = GetSourcePosition( m_GantryAngles.size()-1 );
sph[1] = 0.; // Project position to central plane
VectorType sp( &(sph[0]) );
sp.Normalize();
double a = acos(sp*z);
Expand Down
3 changes: 2 additions & 1 deletion code/rtkThreeDCircularProjectionGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class RTK_EXPORT ThreeDCircularProjectionGeometry : public ProjectionGeometry<3>
}

/** 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. */
* defined as the angle between the z-axis and the isocenter-source line
* projected on the central plane. */
const std::vector<double> GetSourceAngles() const {
return this->m_SourceAngles;
}
Expand Down

0 comments on commit b0dd888

Please sign in to comment.