Automatic initialization for 3D bone registration