patch canny