Is there a method to stop the registration process early?

I want to stop the registration process early,but I’m not sure how.

Maybe observe iteration steps and try to invoke abort? Starting example.

Abort interface not found. Perhaps I can observe the current number of iterations, and then change the number of iterations to terminate the registration in advance?

Worth a try. Also try optimizer->Stop(), similarly to this:

thank you very much