var mat = OpenCvSharp.Extensions.BitmapConverter.ToMat(source);//bitmap转mat Cv2.CvtColor(mat, mat, ColorConversionCodes.RGBA2RGB);//mat转三通道mat var bitmap = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat);//mat转bitmap