Convert System.Drawing.Image to Emgu.CV.Image <Gray, byte>

Is there a way to convert an image of type System.Drawing.Image to an image of type Emgu.CV.Image or vice versa on EmguCV using C #? I will explain to you at your request if further explanation is needed about the purpose of this.

+6
source share
1 answer
 // Converting the master image to a bitmap Bitmap masterImage = (Bitmap) pbxMaster.Image; // Normalizing it to grayscale Image<Gray, Byte> normalizedMasterImage = new Image<Gray, Byte>(masterImage); 
+8
source

Source: https://habr.com/ru/post/944397/


All Articles