Implement an automatic outlier detection and removal algorithm to improve the robustness of the mesh registration process.