This is because in the local segmentation algorithm (having the least deformation constraints) all deformations within the given set of constraints are equally valid.
The external energy is defined as an integral of the energy image around a contour Ω. Discretization occurs by summation over the pixels on the template boundary.