When we look at an image we discern objects, and these tend to be groups of similar pixels surrounded by a distinctive edge. We look at intensity profiles in images and use spatial operators with kernels such as the Sobel kernel to find the intensity gradients in an image, and from these find edges in an image.