[Insight-users] stop registration

Isabelle Renaud isabelle at hermesmedical.com
Fri Dec 23 10:04:50 EST 2011


Hi,

I am trying to stop a registration process when user hits the Escape key. I thought that it will work using
  OptimizerIterationUpdate::Pointer observer = OptimizerIterationUpdate::New();
  optimizer_->AddObserver( itk::UserEvent(), observer );

and then call, optimizer->StopOptimization(); in observer Execute method, but it doesn't. Hitting any key is not caught by the observer. I can't find any example of itk::UserEvent in ITK tutorials.

Any help will be appreciated,

Thanks
Isabelle

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111223/001e1408/attachment.htm>


More information about the Insight-users mailing list