New learnings:

1. Pre-processing of images by subtracting mean activity over the training set from each pixel:

Intuition:

Maths:

Compute the Mean Image

Subtract the Mean Image

Result:

Example

Suppose you have a training set of 3 grayscale images, each of size 2×22×2: