码迷,mamicode.com
首页 > 其他好文 > 详细

EmguCV使用Stitcher类来拼接图像

时间:2017-09-04 09:55:43      阅读:886      评论:0      收藏:0      [点我收藏+]

标签:features   opengl   eric   drawing   catch   cep   str   thread   false   

using System;
using System.Windows;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using Emgu.CV.UI;
using Emgu.CV.Features2D;
using Emgu.CV.ML;
using Emgu.CV.Util;
using Emgu.Util;
using Emgu.CV.Face;
using Emgu.CV.VideoSurveillance;
using OpenTK;
using OpenTK.Graphics.OpenGL;
using OpenTK.Graphics;
using Emgu.CV.Stitching;

namespace EmguCVHist
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            Image<Bgr, byte> a = new Image<Bgr, byte>("1.jpg");
            Image<Bgr, byte> b = new Image<Bgr, byte>("2.jpg");
            Image<Bgr, byte> c = new Image<Bgr, byte>("3.jpg");
            Stitcher stitcher = new Stitcher(false);
            Mat outimg= new Mat();
            try
            {
                stitcher.Stitch(new VectorOfMat(new Mat[] { a.Mat, b.Mat, c.Mat }), outimg);
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            imageBox1.Image = outimg;
        }
    }
}

 

EmguCV使用Stitcher类来拼接图像

标签:features   opengl   eric   drawing   catch   cep   str   thread   false   

原文地址:http://www.cnblogs.com/GmrBrian/p/7472016.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!