From: Vivien Delmon Date: Mon, 7 May 2012 11:36:31 +0000 (+0200) Subject: Add --panel_shift option to BackProject tool X-Git-Tag: v1.3.0~41^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=43badfaa341d9a8c4512936d6862814a53e9b216;p=clitk.git Add --panel_shift option to BackProject tool --- diff --git a/tools/clitkBackProjectImage.ggo b/tools/clitkBackProjectImage.ggo index 24e1de1..995c14c 100644 --- a/tools/clitkBackProjectImage.ggo +++ b/tools/clitkBackProjectImage.ggo @@ -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" diff --git a/tools/clitkBackProjectImageGenericFilter.txx b/tools/clitkBackProjectImageGenericFilter.txx index 01dfe6a..52dd428 100644 --- a/tools/clitkBackProjectImageGenericFilter.txx +++ b/tools/clitkBackProjectImageGenericFilter.txx @@ -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);