Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <opencv2/core/core.hpp>
- #include <opencv2/highgui/highgui.hpp>
- #include <opencv2/calib3d/calib3d.hpp>
- #include <iostream>
- using namespace cv;
- using namespace std;
- int main(){
- Mat C1(2,3,CV_32F);
- C1=(Mat_<uchar>(2,3)<< 2,3,\
- 5,2,\
- 8,1);
- Mat C2(3,3,CV_32F);
- convertPointsToHomogeneous(C1,C2);
- cout <<C2<<endl<<endl;
- waitKey(0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement