From 8190865b347cd358966855519bffa64eb33a636f Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 23 Dec 2018 17:12:09 +0100 Subject: Add DartMask helper connectivity option check --- src/CudaDartMaskAlgorithm3D.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/CudaDartMaskAlgorithm3D.cpp') diff --git a/src/CudaDartMaskAlgorithm3D.cpp b/src/CudaDartMaskAlgorithm3D.cpp index 99b0a8d..f2778cf 100644 --- a/src/CudaDartMaskAlgorithm3D.cpp +++ b/src/CudaDartMaskAlgorithm3D.cpp @@ -85,7 +85,7 @@ bool CCudaDartMaskAlgorithm3D::initialize(const Config& _cfg) // Option: Connectivity try { - m_iConn = _cfg.self.getOptionInt("Connectivity", 8); + m_iConn = _cfg.self.getOptionInt("Connectivity", 26); } catch (const StringUtil::bad_cast &e) { ASTRA_CONFIG_CHECK(false, "CudaDartMask3D", "Connectivity must be an integer."); } @@ -144,7 +144,8 @@ void CCudaDartMaskAlgorithm3D::run(int _iNrIterations) bool CCudaDartMaskAlgorithm3D::_check() { - // connectivity: 4 of 8 + // connectivity: 6 or 26 + ASTRA_CONFIG_CHECK(m_iConn == 6 || m_iConn == 26, "CudaDartMask3D", "Connectivity must be 6 or 26"); // gpuindex >= 0 -- cgit v1.2.3