public static OpenCV.Core.Mat ToCvMat(int row, int col, double[,] buffer) { OpenCV.Core.Mat m = new OpenCV.Core.Mat(row, col, MatType.CV_64FC1); for (int r = 0; r < row; r++) { for (int c = 0; c < col; c++) { m.Put(r, c, buffer[r, c]); } } return(m); }
public static VMat ToVMat(this OpenCV.Core.Mat m) { return(new AndroidMat(m)); }
public static OpenCV.Core.Mat ToCvMat(int row, int col, double[] buffer) { OpenCV.Core.Mat m = new OpenCV.Core.Mat(row, col, MatType.CV_64FC1); m.Put(0, 0, buffer); return(m); }