summaryrefslogtreecommitdiffstats
path: root/include/astra/ParallelBeamLineKernelProjector2D.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:12:40 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-16 11:12:40 +0000
commit86cf9a0f73ecd204a8b6783c9a2557a640619b2d (patch)
tree2026827f31ef4d2e45e7379fde9df8a83c68e463 /include/astra/ParallelBeamLineKernelProjector2D.h
parent42ee607447b19db9ab86533fbf8f96a87a8d4d37 (diff)
downloadastra-86cf9a0f73ecd204a8b6783c9a2557a640619b2d.tar.gz
astra-86cf9a0f73ecd204a8b6783c9a2557a640619b2d.tar.bz2
astra-86cf9a0f73ecd204a8b6783c9a2557a640619b2d.tar.xz
astra-86cf9a0f73ecd204a8b6783c9a2557a640619b2d.zip
Remove code duplication in templated projectors
Diffstat (limited to 'include/astra/ParallelBeamLineKernelProjector2D.h')
-rw-r--r--include/astra/ParallelBeamLineKernelProjector2D.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/astra/ParallelBeamLineKernelProjector2D.h b/include/astra/ParallelBeamLineKernelProjector2D.h
index 9e2cc5a..64b5ef3 100644
--- a/include/astra/ParallelBeamLineKernelProjector2D.h
+++ b/include/astra/ParallelBeamLineKernelProjector2D.h
@@ -173,6 +173,13 @@ 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 <typename Policy>
+ void projectBlock_internal(int _iProjFrom, int _iProjTo,
+ int _iDetFrom, int _iDetTo, Policy& _policy);
};
inline std::string CParallelBeamLineKernelProjector2D::getType()