# Remove Start Registration

Hans Johnson
2011-11-28
STYLE: Remove old backwards compatibility This patch implements a suggestion commented on in June 2006.

Code/Algorithms/itkImageRegistrationMethod.txx (Jim Miller 2006-06-08 16:30:47 -0400 227) StartRegistration is an old API from be ImageRegistrationMethod was a subclass Historically, one could call StartRegis calling Update(). However, when called inputs to ImageRegistrationMethod may n may cause an unexpected behavior.

Since we cannot eliminate StartRegistration for backwards compability reasons, we check whether StartRegistation is called directly or whether Update() (which in turn called StartRegistation)

STYLE: Remove all references to StartRegistation The comments in the code from 2008 indicate that the StartRegistration method should not be used, and that the &quot;Update()&quot; command is the preferred method for intiating a registration.

All documentation and references to &quot;StartRegistration&quot; have been replaced and now reference Update().

registration-&gt;StartRegistration();
registration-&gt;Update();
I784f86c854aa5d8535eae2f74d4c364919d6e7e5
Examples/Registration/DeformableRegistration12.cxx Examples/Registration/DeformableRegistration13.cxx Examples/Registration/DeformableRegistration14.cxx Examples/Registration/DeformableRegistration15.cxx Examples/Registration/DeformableRegistration4.cxx Examples/Registration/DeformableRegistration6.cxx Examples/Registration/DeformableRegistration7.cxx Examples/Registration/DeformableRegistration8.cxx Examples/Registration/ImageRegistration10.cxx Examples/Registration/ImageRegistration11.cxx Examples/Registration/ImageRegistration12.cxx Examples/Registration/ImageRegistration13.cxx Examples/Registration/ImageRegistration14.cxx Examples/Registration/ImageRegistration15.cxx Examples/Registration/ImageRegistration16.cxx Examples/Registration/ImageRegistration17.cxx Examples/Registration/ImageRegistration18.cxx Examples/Registration/ImageRegistration19.cxx Examples/Registration/ImageRegistration2.cxx Examples/Registration/ImageRegistration20.cxx Examples/Registration/ImageRegistration3.cxx Examples/Registration/ImageRegistration3.py Examples/Registration/ImageRegistration3.tcl Examples/Registration/ImageRegistration4.cxx Examples/Registration/ImageRegistration4.py Examples/Registration/ImageRegistration4.tcl Examples/Registration/ImageRegistration5.cxx Examples/Registration/ImageRegistration5.py Examples/Registration/ImageRegistration5.tcl Examples/Registration/ImageRegistration6.cxx Examples/Registration/ImageRegistration7.cxx Examples/Registration/ImageRegistration8.cxx Examples/Registration/ImageRegistration9.cxx Examples/Registration/ImageRegistrationHistogramPlotter.cxx Examples/Registration/IterativeClosestPoint1.cxx Examples/Registration/IterativeClosestPoint2.cxx Examples/Registration/IterativeClosestPoint3.cxx Examples/Registration/ModelToImageRegistration1.cxx Examples/Registration/ModelToImageRegistration2.cxx Examples/Registration/MultiResImageRegistration1.cxx Examples/Registration/MultiResImageRegistration2.cxx Examples/Registration/MultiResImageRegistration3.cxx Modules/Registration/Common/include/itkImageRegistrationMethod.h Modules/Registration/Common/include/itkImageRegistrationMethod.hxx Modules/Registration/Common/include/itkImageToSpatialObjectRegistrationMethod.h Modules/Registration/Common/include/itkImageToSpatialObjectRegistrationMethod.hxx Modules/Registration/Common/include/itkMultiResolutionImageRegistrationMethod.h Modules/Registration/Common/include/itkMultiResolutionImageRegistrationMethod.hxx Modules/Registration/Common/include/itkPointSetToImageRegistrationMethod.h Modules/Registration/Common/include/itkPointSetToImageRegistrationMethod.hxx Modules/Registration/Common/include/itkPointSetToPointSetRegistrationMethod.h Modules/Registration/Common/include/itkPointSetToPointSetRegistrationMethod.hxx Modules/Registration/Common/include/itkPointSetToSpatialObjectDemonsRegistration.h Modules/Registration/Common/include/itkPointSetToSpatialObjectDemonsRegistration.hxx Modules/Registration/Common/test/itkMultiResolutionImageRegistrationMethodTest.cxx Modules/Registration/Common/test/itkMultiResolutionImageRegistrationMethodTest_1.cxx Modules/Registration/Common/test/itkMultiResolutionImageRegistrationMethodTest_2.cxx Modules/Registration/Common/test/itkPointSetToImageRegistrationTest_1.cxx Modules/Registration/Common/test/itkPointSetToPointSetRegistrationTest.cxx Modules/Registration/Common/test/itkPointSetToSpatialObjectDemonsRegistrationTest.cxx Modules/Registration/Common/test/itkSpatialObjectToImageRegistrationTest.cxx Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.h Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.hxx Modules/Registration/RegistrationMethodsv4/test/itkBSplineSyNImageRegistrationTest.cxx Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest.cxx Modules/Registration/RegistrationMethodsv4/test/itkSyNImageRegistrationTest.cxx Modules/Registration/RegistrationMethodsv4/test/itkTimeVaryingBSplineVelocityFieldImageRegistrationTest.cxx Modules/Registration/RegistrationMethodsv4/test/itkTimeVaryingVelocityFieldImageRegistrationTest.cxx Wrapping/Generators/Python/Tests/notYetUsable/ImageRegistration3.py Wrapping/Generators/Python/Tests/notYetUsable/ImageRegistration4.py Wrapping/Generators/Python/Tests/notYetUsable/ImageRegistration5.py Wrapping/Generators/Ruby/Tests/notYetUsable/ImageRegistration3.py Wrapping/Generators/Ruby/Tests/notYetUsable/ImageRegistration4.py Wrapping/Generators/Ruby/Tests/notYetUsable/ImageRegistration5.py Wrapping/Generators/Tcl/Tests/ImageRegistration3.tcl Wrapping/Generators/Tcl/Tests/ImageRegistration4.tcl Wrapping/Generators/Tcl/Tests/ImageRegistration5.tcl