sobel 3x3 edge detec with adjustible treshold