Ask Your Question

Revision history [back]

How to warpPerspective a large image based on transform inferred from small region

I am using cv2.getPerspectiveTransform() and cv2.warpPerspective() to warp an image according to Adrian Rosenbrock blog : https://www.pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/

However in my case I have an image where I can only select the region B to be warped but need to warp (top-down view) the whole larger image A.

Can the parameters of the perspective transform inferred from the smaller region B be applied to the full image A? Is that possible?

image description

How to warpPerspective a large image based on transform inferred from small region

I am using cv2.getPerspectiveTransform() and cv2.warpPerspective() to warp an image according to Adrian Rosenbrock blog : https://www.pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/

However in my case I have an image where I can only select the region B to be warped but need to warp (top-down view) the whole larger image A.

Can the parameters of the perspective transform inferred from the smaller region B be applied to the full image A? Is that possible?

image description