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