none
EMGU CV throws an Exception when try to stitch the image RRS feed

  • Question

  • Hi

    I am working in a application which convert two 16 bit gray scale images into a stitched single image. So while doing this with the code written below

    void Stitching()
            {
                using (Stitcher stitcher = new Stitcher(false))
                {
                    using (VectorOfMat vm = new VectorOfMat())
                    {
                        Mat result = new Mat();
                        vm.Push(firstImage);
                        vm.Push(secondImage);
    
                        stitcher.Stitch(vm, result);
    
                        pbResultImage.Image = result.ToImage<Gray, ushort>().ToBitmap();
                    }
                }
            }

    I get error which says

    "OpenCV: (image.type() == (((0) & ((1 << 3) - 1)) + (((3)-1) << 3))) || (image.type() == (((0) & ((1 << 3) - 1)) + (((4)-1) << 3))) || (image.type() == (((0) & ((1 << 3) - 1)) + (((1)-1) << 3)))"

    I don't have any idea what this says. Please help me. Waiting for answers as soon as possible.



    • Edited by Bharani Krishnan Friday, June 15, 2018 11:16 AM
    • Moved by CoolDadTx Friday, June 15, 2018 1:50 PM Third party product
    Friday, June 15, 2018 11:16 AM

All replies

  • These forums are for MS products only. Please post questions related to third party products in their forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, June 15, 2018 1:50 PM