Calculate the depth value of an image.