I\'m loading a set of test images via OpenCV (in Python) which are 128x128 in size, reshape them into vectors (1, 128x128) and put them all together in a matrix to calculate
You can also put
cv.PCACompute(matrix_test, mean = np.array([]))
and the function computes the mean.