## How do we define interesting?

Before we start computing the seams, we need to find out what metric we will be using to compute them. We need a way to assign *importance* to each pixel so that we can identify the paths that are least important. In computer vision terminology, we say that we need to assign an *energy* value to each pixel so that we can find the path of minimum energy. Coming up with a good way to assign the energy value is very important because it will affect the quality of the output.

One of the metrics that we can use is the value of the derivative at each point. This is a good indicator of the level of activity in that neighborhood. If there is some activity, then the pixel values will change rapidly, hence the value of the derivative at that point will be high. On the other hand, if regions are plain and uninteresting, then pixel values won't change as rapidly, so the value of the derivative at that point in the grayscale image will be low.

For each pixel location, we compute...