摘要: Mat srcImg; // Mat type variable .IplImage *resIplPtr = NULL; // Initialize by NULL.srcImg = imread(imagePath); // read image; resIplPtr = &(IplImage(sr... 阅读全文
posted @ 2012-04-10 16:13 gaoxw0511 阅读(1682) 评论(0) 推荐(0) 编辑
摘要: 参考 : const char * 转换为 char * 1 const char * 转换为 char *指向const的指针不能被赋给指向非const的指针,所以应该用strcpy,也就是另开一块内存,把字符一个个复制过去 const char *expr = "goodidea"; char *buf = new char[strlen(expr)+1];strcpy(buf, expr);... 阅读全文
posted @ 2012-04-10 14:52 gaoxw0511 阅读(916) 评论(0) 推荐(0) 编辑