Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2014
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <opencv2/core/core.hpp>
  2. #include <opencv2/highgui/highgui.hpp>
  3. #include <opencv2/calib3d/calib3d.hpp>
  4. #include <iostream>
  5.  
  6.  
  7. using namespace cv;
  8. using namespace std;
  9.  
  10. int main(){
  11.     Mat C1(2,3,CV_32F);
  12.         C1=(Mat_<uchar>(2,3)<< 2,3,\
  13.         5,2,\
  14.         8,1);
  15.     Mat C2(3,3,CV_32F);
  16.     convertPointsToHomogeneous(C1,C2);
  17.     cout <<C2<<endl<<endl;
  18.     waitKey(0);
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement