A new frame-based registration algorithm