}
filter->SetEdgePaddingValue(static_cast<OutputPixelType>(m_ArgsInfo.pad_arg));
+ DD(m_ArgsInfo.panel_position_arg);
+ 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)
{