cvWarpPerspective, having transformation matrix, how to extract the quad points?
Posted
by Stevecao
on Stack Overflow
See other posts from Stack Overflow
or by Stevecao
Published on 2010-05-19T11:14:39Z
Indexed on
2010/05/19
11:20 UTC
Read the original article
Hit count: 266
opencv
I have the 3x3 transformation matrix that goes through the cvWarpPerspective, I would like to extract the four corner coordinates value.
CvMat* M;
M = xxxxxxxxxxx ;// Matrix was generated by a certain process
cvWarpPerspective( img, transformed, M, CV_INTER_LINEAR + CV_WARP_FILL_OUTLIERS, cvScalarAll( 0 ) ); // this creates a complete black new image transformed, from this image i would like to know the 4 corner coordinates
© Stack Overflow or respective owner