To perform convolution with Sobel in MATLAB, follow these steps:
imread
functionrgb2gray
functionfspecial
functionimfilter
functionimshow
functionHere's the code:
main.m324 chars15 lines
This code will produce an edge-detected image of the original image using Sobel operator.
gistlibby LogSnag