#18 Stitching doesn't work

v1.0_(example)
closed
nobody
None
5
2014-04-19
2012-08-06
No

Even on sample images supplied with Emgu.CV samples. Rises "need more images" exception.

Image<Bgr, byte> currentImage = null;
Stitcher stitcher = new Stitcher(false);//TODO: using
List<Image<Bgr, byte>> imageList = null;
foreach (Object fileItem in lbFileList.Items)
{
string fileName = (string)fileItem;
string filePath = Path.Combine(currentFolder, fileName);
if (imageList == null)
{
imageList = new List<Image<Bgr,byte>>();
currentImage = new Image<Bgr, byte>(filePath);
imageList.Add(currentImage);
}
else
{
Image<Bgr, byte> nextImage = new Image<Bgr, byte>(filePath);
imageList.Add(currentImage);
}
}
Image<Bgr, byte>[] imageArray = imageList.ToArray();
Image<Bgr, byte> stitchedImage = stitcher.Stitch(imageArray);
pictureBox.Image = stitchedImage.ToBitmap();

Discussion

  • Svjatoslav Lisin

    Sorry.

    Emgu CV 2.4.0 for x64
    MS VS 2010
    Win7 x64 run under WMWare Player

     
  • Canming

    Canming - 2014-04-19
    • status: open --> closed
    • Group: --> v1.0_(example)
     
  • Canming

    Canming - 2014-04-19

    You will need to provide more than one image for stitching. Can't stitch just one image.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks