Pattern recognition and correction method for skeleton lines at small patch boundaries. Issue 5 (24th June 2020)