REF: http://ferris2014.blogspot.com/2016/06/opencv-emgu-mat-to-image-image-to-mat.html
Mat to image, image to Mat, image to imagebox, imagebox to image, Mat to imagebox, imagebox to Mat
1. Mat to image
_img = _mat.ToImage<bgr, Byte>();
2. image to Mat
_mat = _img.Mat;
3. image to imagebox
imagebox1.Image=_img;
4. imagebox to image
_img = new Image<bgr, byte>(imageBox1.Image.Bitmap)
5. Mat to imagebox
imagebox1.Image=_mat;
6. imagebox to Mat
(Step4 + Step2)
_img= new Image<bgr, byte>(imageBox1.Image.Bitmap).Mat;
沒有留言:
張貼留言