B is "the target function is invariant to small rotations
of the character in the image". How do we express this
mathematically?
Define a transformation $s(\alpha, x)$ which rotates $x$ by $\alpha$ degrees. Then say
\[ \frac{\partial f(s(\alpha,x_i))}{\partial \alpha} = 0 \]
Then incorporate these into the error function. How?