Emgu C# OpenCV: Make Color Black transparent
问题 I'm currently trying to implement a function with OpenCV which makes the color black of an image transparent. I used this thread as a guideline. Currently it is not working and I'm not sure if it is because of my transfer to C# or another mistake. public Image<Bgr, Byte> BlackTransparent(Image<Bgr, Byte> image) { Mat imageMat = image.Mat; Mat finalMat = new Mat(imageMat.Rows, imageMat.Cols, Emgu.CV.CvEnum.DepthType.Cv8U, 4); Mat tmp = new Mat(imageMat.Rows, imageMat.Cols, Emgu.CV.CvEnum