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;
_img= new Image<bgr, byte>(imageBox1.Image.Bitmap).Mat;
No comments:
Post a Comment