1 | initial version |
Mat kMat = Mat(3,3 CV_32FC1, k);
or if you dont actually need the k array:
Mat kMat = (Mat_<float>(3,3) << 1.0, -2.0, 1.0, 4.0, -2.0, -1.0, 4.0, -2.0, 2.0);
2 | No.2 Revision |
Mat kMat = new Mat(3,3 CV_32FC1, CvType.CV_32FC1, k);
or if you dont actually need the k array:array(c++ only):
Mat kMat = (Mat_<float>(3,3) << 1.0, -2.0, 1.0, 4.0, -2.0, -1.0, 4.0, -2.0, 2.0);
3 | No.3 Revision |
Mat kMat = new Mat(3,3 Mat(3,3, CvType.CV_32FC1, k);
or if you dont actually need the k array(c++ only):
Mat kMat = (Mat_<float>(3,3) << 1.0, -2.0, 1.0, 4.0, -2.0, -1.0, 4.0, -2.0, 2.0);