Opencv transform points warpPerspective takes a 3x3 transformation matrix as input. The points on which we need to change the perspective need to be defined and given to the perspective transform function. Interpolation of pixel values. See the code below: 6 days ago ยท As the object is planar, the transformation between points expressed in the object frame and projected points into the image plane expressed in the normalized camera frame is a homography. queryIdx]. This means that the corresponding pixels in the destination image will not be modified at all. 3626099; 0, 0, 1] I would now like to apply the transform to a vector< Pointf >, so that it will transform each point as it would be if they were in the image. Among these 4 points, 3 of them should not be collinear. ones(arr. However, I have no idea how to do so. zaknmemrqqmfxuuczdxsfncrlepdkrwdmbsxyxdokkarnlriwwqlxkynsvlwashclievv