Skip to content

Commit

Permalink
Merge pull request #486 from GabrieleBelotti/GabrieleBelotti-erratum-…
Browse files Browse the repository at this point in the history
…Parker

Corrected Parker weights references
  • Loading branch information
SimonRit committed Apr 26, 2022
2 parents 26f7829 + 72238ee commit d5112fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/rtkParkerShortScanImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ namespace rtk

/** \class ParkerShortScanImageFilter
*
* Weighting of image projections to handle off-centered panels
* in tomography reconstruction. Based on [Wang, Med Phys, 2002].
*
* Note that the filter does nothing if the panel shift is less than 10%
* of its size. Otherwise, it does the weighting described in the publication
* and zero pads the data on the nearest side to the center.
* Weighting of image projections to handle short-scans
* in tomography reconstruction. Based on [Parker, Med Phys, 1982].
* Class implements a fix to typo in equation (12) of Parker as seen
* in book "Principles of computerized tomographic imaging" by Kak and Slaney
*
* \test rtkshortscantest.cxx, rtkshortscancompcudatest.cxx
*
Expand Down
1 change: 1 addition & 0 deletions include/rtkParkerShortScanImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ ParkerShortScanImageFilter<TInputImage, TOutputImage>::DynamicThreadedGenerateDa
else if (beta <= pi - 2 * alpha)
itWeights.Set(2.);
else if (beta <= pi + 2 * m_Delta)
// Denominator fix to a typo in equation (12) of Parker's article.
itWeights.Set(2. * pow(sin((pi * (pi + 2 * m_Delta - beta)) / (4 * (m_Delta + alpha))), 2.));
else
itWeights.Set(0.);
Expand Down

0 comments on commit d5112fc

Please sign in to comment.