6
有没有什么办法可以将类型System.Drawing.Image的图像转换为使用C#的EmguCV的Emgu.CV.Image类型的图像,反之亦然?我将根据您的要求进行解释,如果需要进一步解释这样做的目的。将System.Drawing.Image转换为Emgu.CV.Image <Gray,byte>
有没有什么办法可以将类型System.Drawing.Image的图像转换为使用C#的EmguCV的Emgu.CV.Image类型的图像,反之亦然?我将根据您的要求进行解释,如果需要进一步解释这样做的目的。将System.Drawing.Image转换为Emgu.CV.Image <Gray,byte>
// 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);
谢谢alot.Sort,perfect and neat – Sisay 2013-05-06 22:46:26