From 2f762b6fcc5bdb62d13552fa61cc6f5246230e8c Mon Sep 17 00:00:00 2001 From: schaerer Date: Mon, 2 Aug 2010 14:09:17 +0000 Subject: [PATCH] fix string comparison --- tools/clitkConeBeamProjectImageFilter.txx | 1 + tools/clitkConeBeamProjectImageGenericFilter.cxx | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/clitkConeBeamProjectImageFilter.txx b/tools/clitkConeBeamProjectImageFilter.txx index 9a103e6..b4dba6d 100755 --- a/tools/clitkConeBeamProjectImageFilter.txx +++ b/tools/clitkConeBeamProjectImageFilter.txx @@ -169,6 +169,7 @@ namespace clitk // JV -1 seems to correspond better with shearwarp of Simon Rit typename InterpolatorType::InputPointType originOutput; originOutput[0] = m_IsoCenter[0]- (m_SourceToScreen - m_SourceToAxis); + DD(m_PanelShift); originOutput[1] = m_IsoCenter[1]-static_cast(sizeOuput[1]-1)*spacingOutput[1]/2.0 - m_PanelShift; originOutput[2] = m_IsoCenter[2]-static_cast(sizeOuput[2]-1)*spacingOutput[2]/2.0; m_Resampler->SetOutputOrigin( originOutput ); diff --git a/tools/clitkConeBeamProjectImageGenericFilter.cxx b/tools/clitkConeBeamProjectImageGenericFilter.cxx index fd983c6..2486938 100755 --- a/tools/clitkConeBeamProjectImageGenericFilter.cxx +++ b/tools/clitkConeBeamProjectImageGenericFilter.cxx @@ -133,11 +133,12 @@ namespace clitk // Panel position (hard coded values for the elekta synergy) // Two be more precise, one should read the specific values for each angle in Frame.dbf - if (strcmp(m_ArgsInfo.panel_position_arg,"small") !=0) + DD(m_ArgsInfo.panel_position_arg); + if (strcmp(m_ArgsInfo.panel_position_arg,"small") ==0) filter->SetPanelShift(0.); - else if (strcmp(m_ArgsInfo.panel_position_arg,"medium") !=0) + else if (strcmp(m_ArgsInfo.panel_position_arg,"medium") ==0) filter->SetPanelShift(114.84); - else if (strcmp(m_ArgsInfo.panel_position_arg,"large") !=0) + else if (strcmp(m_ArgsInfo.panel_position_arg,"large") ==0) filter->SetPanelShift(190.); else assert(false); //Unsupported panel position // Output image info -- 2.47.1