YahooMania
YahooMania

Reputation: 115

How to stretch an image horizontally or vertically using OpenCV

I need to fit two video streams on to each other. I need to manipulate one of them so that they fit inside designated four corners of the other video stream. The corners will likely form a trapezoid. Are there OpenCV functions that will allow me to do this? I'm not sure what the best/easiest option would be.

Upvotes: 0

Views: 1326

Answers (1)

Andrey Kamaev
Andrey Kamaev

Reputation: 30142

For a trapezoid you need warpPerspecive and getPerspectiveTransform.

Upvotes: 1

Related Questions