2016-06-29

[OpenCV-EMGU 記錄] 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;



No comments:

Post a Comment

Random Posts

Advertisement