How to find point location after transformation using warpperspective opencv with modified image size?

239 Views Asked by At

Here is my use case. I have 2 images. I am transforming image 2 onto image 1. Image 1 can be bigger or smaller than image 2. I use homography matrix with warpperspective to transform image 2 on image 1.

Image 2 original size M2, N2 and image 1 size is M1, N1. Now after transformation image 2 will be of size M1, N1 as defined by me so that both images are of same size. Now my question is where is point (x,y) from original image 2 now in the transformed image 2.

I understand the equation of matrix multiplication with x,y but I am not sure how to handle this image size change.

0

There are 0 best solutions below