Input (gray)
Gradient magnitude
Detected edges vs exact outlines
true positive false positive missed outline

Edge Detection Demo

Compare Sobel, Prewitt, Roberts, Laplacian and a complete Canny detector (Gaussian blur, gradient, non-maximum suppression and hysteresis) on a synthetic scene with exactly known outlines. Add noise, change blur and threshold, and read precision, recall and F1 for every setting.