Figure 4:
Three directions of a pixel on the contour surface.