An image analysis approach for automatically re-orienteering CT images for dental implants