In this paper, we revisit the analytical expressions of the three Canny's (1983) criteria for edge detection quality: good detection, good localization, and low multiplicity of false detections. Our work differs from Canny's work on two essential points. Here, the criteria are given for discrete sampled signals, i.e., for the real, implemented filters. Instead of a single-step edge as input signal, we use pulses of various width. The proximity of other edges affects the quality of the detection process. This is taken into account in the new expressions of these criteria. We derive optimal filters for each of the criteria and for any combination of them. In particular, we define an original filter which maximizes detection and localization and a simple approximation of the optimal filter for the simultaneous maximization of the three criteria. The upper bounds of the criteria are computed which allow users to measure the absolute and relative performance of any filter (exponential, Deriche (1987), and first derivative of Gaussian filters are evaluated). Our criteria can also be used to compute the optimal value of the scale parameter of a given filter when the resolution of the detection is fixed.