Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int i = 0; i < 2; i++)
- {
- string path = @"D:\photos\";
- string fileN = path + i.ToString() + ".bmp";
- ImageList.Add(new Image<Bgr, Byte>(fileN));
- }
- try
- {
- using (Stitcher stitcher = new Stitcher(false))
- {
- using (VectorOfMat vm = new VectorOfMat())
- {
- Mat result = new Mat();
- vm.Push(ImageList);
- stitcher.Stitch(vm, result);
- pictureBox1.Image = result.ToImage<Bgr, byte>().Bitmap;
- }
- }
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.ToString());
- }
- }
Add Comment
Please, Sign In to add comment