在C#里用什么函数可以实现IplImage结构转化为BMP图片数据。我知道C++里可以用IplImage2Bmp()。C#用什么函数??

解决方案 »

  1.   

    没高手么,opencv里用的是IplImage2Bmp(),在emgucv里用什么函数???
      

  2.   

     public string  ConvertToPicture(string bytes, string path)
            {
                string TempFile = Application.StartupPath + "\\TempFile.bmp";
                if (String.IsNullOrEmpty(bytes)) return string.Empty;
                File.Delete(TempFile);
                File.Delete(path);
                cimage.ConvertStringToPicture(bytes, TempFile);
                Bmp2Jpg(TempFile, path);
                return path;
            }
    这个是哦用到的方法你可以直接用
      

  3.   

       public void Bmp2Jpg(string bmpPathName, string jpgPathName)
            {
                Bitmap bmp = new Bitmap(bmpPathName);
                bmp.Save(jpgPathName, System.Drawing.Imaging.ImageFormat.Jpeg);
                bmp.Dispose();
            }
    对了还有这个方法
      

  4.   

    这个方法是吧BmpToJpg你可以转换下就可以了