EmguCV envelope in Bitmap



  • We need to convert. Image<Bgr, byte> Total Bitmap
    Google, in all the examples, they do:

    pictureBoxOutput.Image = mat.ToImage<Bgr, byte>().Flip(Emgu.CV.CvEnum.FlipType.Horizontal).Bitmap;
    

    I have... No definition of Bitmap введите сюда описание изображения



  • You used an example for an old version. Emgu.CV

    https://www.emgu.com/wiki/files/4.5.4/document/html/T_Emgu_CV_Image_2.htm

    According to version 4.5.4, you'll need this method.

    public static Bitmap ToBitmap<TColor, TDepth>(this Image<TColor, TDepth> image)
    

    Convert this image into Bitmap, the pixel values are copied over to the Bitmap

    pictureBoxOutput.Image = mat.ToImage<Bgr, byte>()
        .Flip(Emgu.CV.CvEnum.FlipType.Horizontal)
        .ToBitmap();
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2