Professional Documents
Culture Documents
Text; using System.Windows.Forms; using Emgu.CV; using Emgu.CV.Structure; using Emgu.Util; namespace EmguCV1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { OpenFileDialog open = new OpenFileDialog(); if (open.ShowDialog() == DialogResult.OK) { Image<Bgr, Byte> im = new Image<Bgr, byte>(open.FileName); pictureBox1.Image = im.ToBitmap(); }
} } }