]> Creatis software - clitk.git/commitdiff
fix string comparison
authorschaerer <schaerer>
Mon, 2 Aug 2010 14:09:17 +0000 (14:09 +0000)
committerschaerer <schaerer>
Mon, 2 Aug 2010 14:09:17 +0000 (14:09 +0000)
tools/clitkConeBeamProjectImageFilter.txx
tools/clitkConeBeamProjectImageGenericFilter.cxx

index 9a103e64cafa71c71481ed7741713fb111456cd7..b4dba6d1f90c7fb2ce96f73f453cfcc00147af9f 100755 (executable)
@@ -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<double>(sizeOuput[1]-1)*spacingOutput[1]/2.0 - m_PanelShift;
     originOutput[2] = m_IsoCenter[2]-static_cast<double>(sizeOuput[2]-1)*spacingOutput[2]/2.0; 
     m_Resampler->SetOutputOrigin( originOutput );
index fd983c6211904b10de895201c4af68d769022e50..248693876b408450c29fcf411b8b7fb6728b650d 100755 (executable)
@@ -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