]> Creatis software - clitk.git/commitdiff
Add --panel_shift option to BackProject tool
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 7 May 2012 11:36:31 +0000 (13:36 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 7 May 2012 11:36:31 +0000 (13:36 +0200)
tools/clitkBackProjectImage.ggo
tools/clitkBackProjectImageGenericFilter.txx

index 24e1de1ca36dd1656c63821ad19d67431ffe9e53..995c14c1b916cfdc34cd0efff80a1b9acd8b5d7d 100644 (file)
@@ -29,6 +29,7 @@ option "axis"                 -       "Specify the source to axis distance in mm"     float           no      d
 option "angle"                 -       "Specify the projection angle"                  float           no      default="0.0"
 option "matrix"                -       "Rigid tranform prior to projection (4x4)"      string          no      
 option "pad"                           -       "Padding value"                                 float           no      default="0.0"
+option "panel_shift"            -       "Precise position of the panel in mm"           double          multiple        no
 
 
 section "Output Image"
index 01dfe6ae32a62e66030f3d6756d6cf1b2feb1046..52dd428c778749ae7930a6d8abe70adf0810a559 100644 (file)
@@ -72,6 +72,8 @@ namespace clitk
          iso[i]=m_ArgsInfo.iso_arg[i];
        filter->SetIsoCenter(iso);
       }
+    if (m_ArgsInfo.panel_shift_given)
+      filter->SetPanelShift(m_ArgsInfo.panel_shift_arg[0], m_ArgsInfo.panel_shift_arg[1]);
     filter->SetSourceToScreen(m_ArgsInfo.screen_arg);
     filter->SetSourceToAxis(m_ArgsInfo.axis_arg); 
     filter->SetProjectionAngle(m_ArgsInfo.angle_arg);