opencv 数组转换为mat

float labels[16] = {1.0, 1.0,1.0,1.0,2.0,2.0,2.0,2.0,3.0,3.0,3.0,3.0,4.0,4.0,4.0,4.0};

 CvMat labelsMat = cvMat(16, 1, CV_32FC1, labels);


你可能感兴趣的:(OPENCV)