From 86cf9a0f73ecd204a8b6783c9a2557a640619b2d Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 16 Apr 2014 11:12:40 +0000 Subject: Remove code duplication in templated projectors --- include/astra/FanFlatBeamStripKernelProjector2D.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/astra/FanFlatBeamStripKernelProjector2D.h') diff --git a/include/astra/FanFlatBeamStripKernelProjector2D.h b/include/astra/FanFlatBeamStripKernelProjector2D.h index 7fed4c8..6b95427 100644 --- a/include/astra/FanFlatBeamStripKernelProjector2D.h +++ b/include/astra/FanFlatBeamStripKernelProjector2D.h @@ -174,6 +174,12 @@ public: */ virtual std::string getType(); +protected: + /** Internal policy-based projection of a range of angles and range. + * (_i*From is inclusive, _i*To exclusive) */ + template + void projectBlock_internal(int _iProjFrom, int _iProjTo, + int _iDetFrom, int _iDetTo, Policy& _policy); }; //---------------------------------------------------------------------------------------- -- cgit v1.2.3