]> Creatis software - clitk.git/blobdiff - tools/clitkConeBeamProjectImageGenericFilter.cxx
fix composition order bug; add panel position. Panel position settings are still...
[clitk.git] / tools / clitkConeBeamProjectImageGenericFilter.cxx
index 50d32a62763238487573a6a56615d4b422688fd0..fd983c6211904b10de895201c4af68d769022e50 100755 (executable)
@@ -131,6 +131,15 @@ namespace clitk
       }
     filter->SetEdgePaddingValue(static_cast<OutputPixelType>(m_ArgsInfo.pad_arg));
 
+    // 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)
+      filter->SetPanelShift(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)
+      filter->SetPanelShift(190.);
+    else assert(false); //Unsupported panel position
     // Output image info
     if (m_ArgsInfo.like_given)
       {