M-File Help: isobel | View code for isobel |
Sobel edge detector
out = isobel(im) is an edge image computed using the Sobel edge operator applied to the image im. This is the norm of the vertical and horizontal gradients at each pixel. The Sobel horizontal gradient kernel is:
| -1 0 1| | -2 0 2| | -1 0 1|
and the vertical gradient kernel is the transpose.
[gx,gy] = isobel(im) as above but returns the gradient images rather than the gradient magnitude.
out = isobel(im,dx) as above but applies the kernel dx and dx' to compute the horizontal and vertical gradients respectively.
[gx,gy] = isobel(im,dx) as above but returns the gradient images rather than the gradient magnitude.
ksobel, kdgauss, icanny, iconv
© 1990-2012 Peter Corke.