Applying the Sobel filter using scipy
I'm trying to apply the Sobel filter on an image to detect edges using scipy. I'm using Python 3.2 (64 bit) and scipy 0.9.0 on Windows 7 Ultimate (64 bit). Currently my code is as follows: import scipy from scipy import ndimage im = scipy.misc.imread('bike.jpg') processed = ndimage.sobel(im, 0) scipy.misc.imsave('sobel.jpg', processed) I don't know what I'm doing wrong, but the processed image does not look anything like what it should. The image, 'bike.jpg' is a greyscale (mode 'L' not 'RGB') image so each pixel has only one value associated with it. Unfortunately I can't post the images here