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
itk::Vector<double,3> 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..."<<std::endl;
+ if(m_Verbose) std::cout<<"No itinial matrix given and \"centre\" flag switched on. Centering all images..."<<std::endl;
rigidTransform=RigidTransformType::New();