projective_trans_point_2d — Project a homogeneous 2D point using a projective transformation matrix.
projective_trans_point_2d applies the homogeneous projective transformation matrix HomMat2D to all homogeneous input points (Px,Py,Pw) and returns an array of homogeneous output points (Qx,Qy,Qw). The transformation is described by the homogeneous transformation matrix given in HomMat2D. This corresponds to the following equation (input and output points as homogeneous vectors):
To transform the homogeneous coordinates to Euclidean coordinates, they have to be divided by Qw:
If the points to transform are specified in standard image coordinates, their row coordinates must be passed in Px and their column coordinates in Py. This is necessary to obtain a right-handed coordinate system for the image. In particular, this assures that rotations are performed in the correct direction. Note that the (x,y) order of the matrices quite naturally corresponds to the usual (row,column) order for coordinates in the image.
Homogeneous projective transformation matrix.
Input point (x coordinate).
Input point (y coordinate).
Input point (w coordinate).
Output point (x coordinate).
Output point (y coordinate).
Output point (w coordinate).
vector_to_proj_hom_mat2d, hom_vector_to_proj_hom_mat2d, proj_match_points_ransac, proj_match_points_ransac_guided, hom_mat3d_project
projective_trans_image, projective_trans_image_size, projective_trans_region, projective_trans_contour_xld, projective_trans_pixel