I'm not sure -
take a look at the OpenCV Eigenface documentation
.