Example of taking a gradient.  Suppose image is described by: I(x,y) = x^2 + y^2.  What is the gradient?  (2x, 2y).  What is the direction of the gradient?  In the direction away from the origin.  This is the direction where things change most rapidly.  What about the magnitude?  Things change more rapidly as we get further from origin.