vectorImgs;
Imgs. Reserve (100);
Imgs. Push_back (imread (" 20191218103826 PNG "));
Imgs. Push_back (imread (" 20191218103828 PNG "));
//imgs. Push_back (imread (" 20191218103830 PNG "));
Mat res;
Stitcher Stitcher=Stitcher: : createDefault (false);
Stitcher: : the Status Status=Stitcher. Stitch (imgs, res);
When using Opencv image matching function Stitcher, need use vector
Some post said before using opencv function vector type of data in advance application memory space, normal only after release, tried to use the reserve in advance to apply for space, or complains,
Do feature detection using vector< before; KeyPoint> Types of data, is also a similar problem, then use the reserve in advance to apply for space to solve the problem, I don't know why the vector
I now have VS2010 + opencv 2.4.9, please everyone a great god guidance!