From: Romulo Pinho Date: Tue, 28 Feb 2012 12:25:33 +0000 (+0100) Subject: initial image centralization (BLUT) is optional X-Git-Tag: v1.3.0~85 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2970412dac3a8738a397cf9e0f0a2a4b2fe666e1;p=clitk.git initial image centralization (BLUT) is optional - with --centre flag --- 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..."<