how to calculate quadratic features in computer vision Neural Network
Sorry for being so late in the response. I have just read your message. 

The instructor is using $\frac{x^2}2$. So $\frac{2500\times 2500}2$, and this will get approx $3$ millions features.

BR