Applying sobel and threshold filters to the image.