From 2970412dac3a8738a397cf9e0f0a2a4b2fe666e1 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Tue, 28 Feb 2012 13:25:33 +0100 Subject: [PATCH] initial image centralization (BLUT) is optional - with --centre flag --- registration/clitkBLUTDIR.ggo | 1 + registration/clitkBLUTDIRGenericFilter.cxx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/registration/clitkBLUTDIR.ggo b/registration/clitkBLUTDIR.ggo index ed3efce..9db5646 100644 --- a/registration/clitkBLUTDIR.ggo +++ b/registration/clitkBLUTDIR.ggo @@ -34,6 +34,7 @@ option "after" - "Difference image after " string no section "Transform (Note that only one of --control, --spacing is required. The other will be adjusted to fit the region and allow exact representation. SamplingFactor will be set accordingly" option "initMatrix" - "Prior rigid/affine transform matrix from reference to target space" string no +option "centre" - "Centre images before starting registration (ignored if initMatrix was given)" flag off option "initCoeff" - "Initial coefficient image" string no option "order" - "Spline Order FFD" int no multiple default="3" option "control" - "Internal control points for each dimension" int no multiple diff --git a/registration/clitkBLUTDIRGenericFilter.cxx b/registration/clitkBLUTDIRGenericFilter.cxx index 9f808e7..06045c5 100644 --- a/registration/clitkBLUTDIRGenericFilter.cxx +++ b/registration/clitkBLUTDIRGenericFilter.cxx @@ -496,9 +496,9 @@ namespace clitk itk::Vector finalTranslation = clitk::GetTranslationPartMatrix3D(rigidTransformMatrix); rigidTransform->SetTranslation(finalTranslation); } - else + else if (m_ArgsInfo.centre_flag) { - if(m_Verbose) std::cout<<"No itinial matrix given. Centering all images..."<