I'm doing image stitching on a video and this is basically how my loop works: frame1 + frame2 = stitched replace frame1 as stitched and repeat loop.
I tried resizing frame1 to the size of stitched and then using stitched.copyTo(frame1) but that doesn't seem to work. :(
Do you guys have any suggestions?
Thanks in advance!
// Free data allocated for frame1
frame1.release();
// Clone stiched image
frame1 = stiched.clone();
I have not been working with OpenCV in a long time, but here's my sugesstion
Assuming you stitched the two images sucessfully, the MAT stiched should be the resulting image. So, instead of copying stitched to frame1, stitched.copyTo(frame1)
, why not just imshow(stitched)
?
Give us what you have done so far, so we can understand your question better :D
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.