Energy function
The energy function currently used by Seamstress is an approximate measure of the gradient parallel to the x and y axes of a slightly blurred version of the input image.
If 
 is the original image, then the energy of that image can be defined as 
where 
 is the result of the convolution
with 
 and 
 is a normalizing constant.
Hayden Walles
2015-09-02