Feature detection:  the math
This can be rewritten:
For the example above
You can move the center of the green window to anywhere on the
blue unit circle
Which directions will result in the largest and smallest E values?
We can find these directions by looking at the eigenvectors of H