Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to put a label of type string in a matrix (KNN)

This line put a label for a trainData mat train_labels.push_back(new Mat (1,1,CvType.CV_32FC1,new Scalar(i))) I would put a string label instead of a float label .is it possible ?

How to put a label of type string in a matrix (KNN)

This line put a label for a trainData mat

train_labels.push_back(new Mat (1,1,CvType.CV_32FC1,new Scalar(i))) Scalar(i)))

I would put a string label instead of a float label .is it possible ?