I’ve been doing some homework for Computer Vision class. Matlab apparently has extensive image processing capabilities. One handy function is “edge” which will return a zero-filled matrix with 1s corresponding to edges.
edge
There is one post tagged edge.