You can achieve this by following these steps:
imread function.rgb2gray function.imgradient function with 'sobel' method.imbinarize function with 'adaptive' method.imcomplement function.Here is the code snippet in MATLAB that implements the above steps:
main.m362 chars18 lines
gistlibby LogSnag