To apply the Sobel filter in MATLAB for edge detection, follow these steps:
imread
function:27 chars2 lines
rgb2gray
function:26 chars2 lines
edge
function with the 'Sobel'
option:37 chars2 lines
imfilter
function:211 chars8 lines
The resulting image sobel_img
will show the edges in the original image detected using the Sobel filter.
gistlibby LogSnag