① Emgu CV 圖像拼接或者用其他方法在C#如何實現
Image<Bgr, Byte>[] sources;
OpenFileDialog open = new OpenFileDialog();
open.CheckFileExists = true;
open.Multiselect = true;
open.Filter = "打開圖片|*.jpg";
open.ShowDialog();
sources=new Image<Bgr,byte>[open.FileNames.Length];
for (int i = 0; i < open.FileNames.Length; i++)
{
sources[i] = new Image<Bgr, byte>(open.FileNames[i]);
}
pictureBox1.Image = sources[0].Bitmap;
pictureBox2.Image = sources[1].Bitmap;
pictureBox3.Image = sources[2].Bitmap;
Stitcher stitcher = new Stitcher(true);
Image<Bgr, byte> result = stitcher.Stitch(sources);
pictureBox4.Image = result.Bitmap;