c# opencvsharp bitmap转mat--mat转bitmap
c# opencvsharp bitmap转mat--mat转bitmap
// Mat mat = OpenCvSharp.Extensions.BitmapConverter.ToMat(bitmap); //bitmap转mat // mat = mat.CvtColor(ColorConversionCodes.GRAY2RGB);//转彩色图像 // mat = DrawCross(mat, new System.Drawing.Point(640, 512), 0.0, 1000, Scalar.Red, 2); Bitmap bitmap; bitmap = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(result.src); //mat转bitmap bitmap.Save(Application.StartupPath + "\\pics\\reels_in_box.bmp");
欢迎讨论,相互学习。
cdtxw@foxmail.com