File tree 1 file changed +7
-17
lines changed
1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -1764,30 +1764,20 @@ class CRaytracingPolar : public CRaytracingBasic
1764
1764
// -> if the resulting cartesian detector has more pixels than there are polar pixels,
1765
1765
// then use the interpolation method
1766
1766
1767
- uint processing_method;
1768
1767
if (map_pixel_x * map_pixel_y > npix_total)
1769
1768
{
1770
- processing_method = INTERP; // interpolation
1769
+ detector->setProcessingMethod (INTERP);
1770
+ cout << " HINT: Using 'interpolation' method to post process from polar to cartesian detector" << endl;
1771
+ return postProcessingUsingInterpolation ();
1771
1772
}
1772
1773
else
1773
1774
{
1774
- processing_method = NEAREST; // nearest
1775
+ detector->setProcessingMethod (NEAREST);
1776
+ cout << " HINT: Using 'nearest' method to post process from polar to cartesian detector" << endl;
1777
+ return postProcessingUsingNearest ();
1775
1778
}
1776
- detector->setProcessingMethod (processing_method);
1777
1779
1778
- switch (processing_method)
1779
- {
1780
- case NEAREST:
1781
- cout << " HINT: Using 'nearest' method to post process from polar to cartesian detector" << endl;
1782
- return postProcessingUsingNearest ();
1783
- break ;
1784
- case INTERP:
1785
- cout << " HINT: Using 'interpolation' method to post process from polar to cartesian detector" << endl;
1786
- return postProcessingUsingInterpolation ();
1787
- break ;
1788
- default :
1789
- return false ;
1790
- }
1780
+ return false ;
1791
1781
}
1792
1782
1793
1783
bool postProcessingUsingNearest ()
You can’t perform that action at this time.
0 commit comments