如何将 ImageBox.Image 转换为图像 <Bgr, Byte>

How to convert ImageBox.Image to Image<Bgr, Byte>

我需要在图像变量中包含我的(Emgu CV 版本 3)ImageBox 的图像,我应该怎么做?

我尝试了这个但没有成功:

 Image<Bgr, Byte> imgeOrigenal;
 imgeOrigenal = ImageBoxbOrigenal.Image; //error line

结果:

Cannot implicitly convert type 'Emgu.CV.IImage' to 'Emgu.CV.Image'. An explicit conversion exists

你可以通过源位图转换它,像这样:

Image<Bgr, Byte> imgeOrigenal = new Image<Bgr, Byte>(ImageBoxbOrigenal.Image.Bitmap);