diff options
Diffstat (limited to 'include/astra')
-rw-r--r-- | include/astra/FanFlatBeamLineKernelProjector2D.inl | 4 | ||||
-rw-r--r-- | include/astra/ParallelBeamLineKernelProjector2D.inl | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/astra/FanFlatBeamLineKernelProjector2D.inl b/include/astra/FanFlatBeamLineKernelProjector2D.inl index 927aa09..eb73de8 100644 --- a/include/astra/FanFlatBeamLineKernelProjector2D.inl +++ b/include/astra/FanFlatBeamLineKernelProjector2D.inl @@ -207,4 +207,8 @@ void CFanFlatBeamLineKernelProjector2D::projectBlock_internal(int _iProjFrom, in } // end loop detector } // end loop angles + // Delete created vec geometry if required + if (dynamic_cast<CFanFlatProjectionGeometry2D*>(m_pProjectionGeometry)) + delete pVecProjectionGeometry; + } diff --git a/include/astra/ParallelBeamLineKernelProjector2D.inl b/include/astra/ParallelBeamLineKernelProjector2D.inl index 7db0a34..d07f989 100644 --- a/include/astra/ParallelBeamLineKernelProjector2D.inl +++ b/include/astra/ParallelBeamLineKernelProjector2D.inl @@ -295,6 +295,7 @@ void CParallelBeamLineKernelProjector2D::projectBlock_internal(int _iProjFrom, i } // end loop detector } // end loop angles + // Delete created vec geometry if required if (dynamic_cast<CParallelProjectionGeometry2D*>(m_pProjectionGeometry)) delete pVecProjectionGeometry; |