I am working on a video processing and the preliminary steps include face recognition...I made a data base of the faces (100*100 and grayscale) and stored them in mat vector and corresponding labels in int vector but while I call the train function for the model it gives an error -1073741819 full code can be found here