A Discrete Reaction-Diffusion Operator for Moving Curves and Edge Detection