Image
タイプをタイプに変換する方法はありImage<Bgr, Byte>
ますか?
Controlから画像を取得し、PictureBox
それをImage<Bgr, Byte>
型に変換する必要があります。
Image pictureBoxImage = pictureBox.Image;
Image<Bgr, Byte> image = // ...
ドキュメントによると:
ビットマップから画像を作成する
Image<TColor, TDepth>
.NetBitmap
オブジェクトからを作成することもできます
したがって、次のことができるはずです。
var image = new Image<Bgr, Byte>(new Bitmap(pictureBox.Image));