Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Is there any way to convert an Image of type System.Drawing.Image in to Image of Emgu.CV.Image type or vice versa on EmguCV using C#? I will explain per your request if additional explanation is needed about the purpose of doing this.

like image 896
Sisay Avatar asked May 06 '13 21:05

Sisay


Video Answer


1 Answers

// 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);
like image 146
Waleed Avatar answered Sep 19 '22 15:09

Waleed