In the FaceRecognition class from java jni I have the following train method:
public void train(List<Mat> src, Mat labels)
In all the examples "labels" is a vector, not a Mat. In the c++ documentation I did found:
The labels of each image are stored within a std::vector<int> (you could also use a Mat of type CV_32SC1).
but I'm not sure how to do this in java. How do I construct a Mat of type CV_32SC1 that contains a list of int?