Add Sobel edge detection with threshold clipping.