correction of edge detection (sobel)