Exemplo n.º 1
0
        private static void Stitching(Mat[] images)
        {
            var stitcher = Stitcher.CreateDefault(false);

            Mat pano = new Mat();

            Console.Write("Stitching 処理開始...");
            var status = stitcher.Stitch(images, pano);

            Console.WriteLine(" 完了 {0}", status);

            pano.SaveImage(@"C:\temp\pano.png");
            Window.ShowImages(pano);

            foreach (Mat image in images)
            {
                image.Dispose();
            }
        }
Exemplo n.º 2
0
        public void Run()
        {
            Mat[] images = SelectStitchingImages(400, 400, 10);

            var stitcher = Stitcher.CreateDefault(false);

            Mat pano = new Mat();

            Console.Write("Stitching start...");
            var status = stitcher.Stitch(images, pano);

            Console.WriteLine(" finish (status:{0})", status);

            Window.ShowImages(pano);

            foreach (Mat image in images)
            {
                image.Dispose();
            }
        }