aruco_create_marker.cpp
Go to the documentation of this file.
00001 #include "aruco/aruco.h"
00002 #include <iostream>
00003 using namespace cv;
00004 using namespace std;
00005  
00006 int main(int argc,char **argv)
00007 {
00008 try{
00009   if (argc!=4){
00010     cerr<<"Usage: <makerid(0:1023)> outfile.png sizeInPixels"<<endl;
00011     return -1;
00012   }
00013   Mat marker=aruco::Marker::createMarkerImage(atoi(argv[1]),atoi(argv[3]));
00014   imwrite(argv[2],marker);
00015   
00016   
00017     
00018 }
00019 catch(std::exception &ex)
00020 {
00021     cout<<ex.what()<<endl;
00022 }
00023 
00024 }


aruco_pose
Author(s): Julian Brunner
autogenerated on Mon Oct 6 2014 08:32:33