From 43badfaa341d9a8c4512936d6862814a53e9b216 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Mon, 7 May 2012 13:36:31 +0200 Subject: [PATCH] Add --panel_shift option to BackProject tool --- tools/clitkBackProjectImage.ggo | 1 + tools/clitkBackProjectImageGenericFilter.txx | 2 ++ 2 files changed, 3 insertions(+) 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); -- 2.45.1