int main(int argc , char * argv[])
{
if (argc!=3)
{
printf("there is something wrong");
return -1;
}
int board_w=atoi(argv[1]); //
int board_h=atoi(argv[2]);
int board_n=board_h*board_w;
CvSize board_sz=cvSize(board_w,board_h);
CvMat * intrisic=(CvMat *)cvLoad(argv[3]);
{
if (argc!=3)
{
printf("there is something wrong");
return -1;
}
int board_w=atoi(argv[1]); //
int board_h=atoi(argv[2]);
int board_n=board_h*board_w;
CvSize board_sz=cvSize(board_w,board_h);
CvMat * intrisic=(CvMat *)cvLoad(argv[3]);
CvMat * distortion=(CvMat *)cvLoad(argv[4]);
这个里面 argv 的参数如何传递进去。
工具栏里面有个project(点击)---》properties-->> 然后是下面的流程
在command arument 下面输入 传入的参数.OK了