Hello,
I use this code : Mat sampleMat = (Mat_<float>(1,1) << (trainData[i][0]));
But I want to create mat object with a loop. Maybe it looks like this :
Mat sampleMat = (Mat_<float>(1,size) << for(j < size)(trainData[i][j]));
How can I do this?
1 | initial version |
Hello,
I use this code : Mat sampleMat = (Mat_<float>(1,1) << (trainData[i][0]));
But I want to create mat object with a loop. Maybe it looks like this :
Mat sampleMat = (Mat_<float>(1,size) << for(j < size)(trainData[i][j]));
How can I do this?
2 | No.2 Revision |
Hello,
I use this code :
Mat sampleMat = (Mat_<float>(1,1) << (trainData[i][0]));(trainData[i][0]));
But I want to create mat object with a loop. Maybe it looks like this :
Mat sampleMat = (Mat_<float>(1,size) << for(j < How can I do this?