diff options
author | Willem Jan Palenstijn <wjp@usecode.org> | 2019-02-19 10:47:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 10:47:45 +0100 |
commit | 3d07f5b107eeb796573d4a74e46367cf1bfb2abf (patch) | |
tree | 63b9edf1c08fdbc50acdb61c737417b56aa7e7d1 /include/astra/ParallelBeamLinearKernelProjector2D.inl | |
parent | 8190865b347cd358966855519bffa64eb33a636f (diff) | |
parent | 22342b7a1bd169c474cf323709e36f553ac4aee1 (diff) | |
download | astra-3d07f5b107eeb796573d4a74e46367cf1bfb2abf.tar.gz astra-3d07f5b107eeb796573d4a74e46367cf1bfb2abf.tar.bz2 astra-3d07f5b107eeb796573d4a74e46367cf1bfb2abf.tar.xz astra-3d07f5b107eeb796573d4a74e46367cf1bfb2abf.zip |
Merge pull request #183 from wjp/par2d_dd
Add basic implementation of par2d CPU Distance Driven projector
Diffstat (limited to 'include/astra/ParallelBeamLinearKernelProjector2D.inl')
-rw-r--r-- | include/astra/ParallelBeamLinearKernelProjector2D.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/astra/ParallelBeamLinearKernelProjector2D.inl b/include/astra/ParallelBeamLinearKernelProjector2D.inl index 485eef6..10d4892 100644 --- a/include/astra/ParallelBeamLinearKernelProjector2D.inl +++ b/include/astra/ParallelBeamLinearKernelProjector2D.inl @@ -156,7 +156,7 @@ void CParallelBeamLinearKernelProjector2D::projectBlock_internal(int _iProjFrom, float32 detSize = sqrt(proj->fDetUX * proj->fDetUX + proj->fDetUY * proj->fDetUY); - bool vertical = fabs(proj->fRayX) < fabs(proj->fRayY); + const bool vertical = fabs(proj->fRayX) < fabs(proj->fRayY); if (vertical) { RxOverRy = proj->fRayX/proj->fRayY; lengthPerRow = detSize * m_pVolumeGeometry->getPixelLengthX() * sqrt(proj->fRayY*proj->fRayY + proj->fRayX*proj->fRayX) / abs(proj->fRayY); |