Zero-crossing detector
iz = zcross(im) is a binary image with pixels set where the corresponding pixels in the signed image im have a zero crossing, a positive pixel adjacent to a negative pixel.
Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.