using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Emgu.CV;
using Emgu.Util;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using System.Drawing;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
Image<Bgr, Byte> Img1=new Image<Bgr, Byte>("sampleImage2.png");
Image<Bgr, Byte> Img2 = new Image<Bgr, Byte>("sampleImage3.png");
Image<Bgr, Byte> dst = new Image<Bgr, byte>(Img1.Width, Img1.Height);
//两幅图像相或
dst = Img1.And(Img2);
CvInvoke.cvShowImage("Img1", Img1);
CvInvoke.cvShowImage("Img2", Img2);
CvInvoke.cvShowImage("dst", dst);
CvInvoke.cvWaitKey(0);
}
}
}
EmguCV图像显示控制台程序
最新推荐文章于 2023-12-12 13:37:16 发布