The optimal function in the Canny detector is described by the sum of four exponential terms, which can be approximated by the first derivative of the Gaussian function. Among the commonly used edge detection methods, Canny edge detection algorithm is one of the strictly defined edge detection methods that can provide good and reliable detection results.