Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

warpPerspective Transform Matrix type ?

$
0
0
I am using opencv on C++. I am quite new at Opencv, and I think that my problem should be easy to solve ... thank you for your help. I don't understand what should be the data type of the transformation matrix in warpPerspective and how it works. I have a 3 x 3 matrix (of type Eigen::MatrixXf) H, and I manually build a cv::Mat H2 equal to H, so that I could execute that transformation on an image, as follows : warpPerspective(src , newImg , H2 , Size (5*H1 , 5*W) ) ; As I have not succeeded to build H2 correctly, I do it and check it step by step, as follows : Mat H2(3,3, CV_64F); for (int g=0;g<3;g++) for (int g1=0; g1<3; g1++) H2.at(g,g1)= float(H(g,g1)) ; cout <(t,s)<

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>