예제 #1
0
 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);
 }
예제 #2
0
 public static VMat ToVMat(this OpenCV.Core.Mat m)
 {
     return(new AndroidMat(m));
 }
예제 #3
0
 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);
 }