Use sobel to detect edges.