X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkConeBeamProjectImageGenericFilter.cxx;h=ff775d049b21e72155bd2d4d7b36222b7801132c;hb=7dd4f61d0341af69d3c6ddfb115a219bc54284c3;hp=248693876b408450c29fcf411b8b7fb6728b650d;hpb=2f762b6fcc5bdb62d13552fa61cc6f5246230e8c;p=clitk.git diff --git a/tools/clitkConeBeamProjectImageGenericFilter.cxx b/tools/clitkConeBeamProjectImageGenericFilter.cxx index 2486938..ff775d0 100755 --- a/tools/clitkConeBeamProjectImageGenericFilter.cxx +++ b/tools/clitkConeBeamProjectImageGenericFilter.cxx @@ -131,16 +131,18 @@ namespace clitk } filter->SetEdgePaddingValue(static_cast(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 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) - filter->SetPanelShift(114.84); - else if (strcmp(m_ArgsInfo.panel_position_arg,"large") ==0) - filter->SetPanelShift(190.); - else assert(false); //Unsupported panel position + if (m_ArgsInfo.panel_shift_given) // one should read the specific values for each angle in Frame.dbf + filter->SetPanelShift(m_ArgsInfo.panel_shift_arg); + else { // approximate panel positions hard coded values for the elekta synergy + 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) {