简体   繁体   中英

How to stitch 4 images using opencv in c++

I have images of 4 different positions of a road and I want to stitch them together using OpenCV.
The problem is that the changes between the pictures is not "smooth", the color and the texture of the images is not the same so it doesn't seem like this is actually 1 big picture.

You could try out the sticher class of opencv. Specially the examples examples opencv brings in the source code at opencv_source_code/samples/cpp/stitching.cpp and at opencv_source_code/samples/cpp/stitching_detailed.cpp .

If the result of executing the stiching example in your images is what you want you can explore the code to see how it was done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM