1.将windows代码移植到linux时,对字符串的定义:string a ="yes",要加L,改为:string a =L"yes"。
2.在windows上面的汇编代码不能在linux上面使用。
3.在windows上面通过记事本打开后看到的保存代码文件编码形式为:ANSI,移植到linux上面时编码形式应保存为UTF-8
4.临时变量赋值:
Mat rawImg,cloneRawImg;
IplImage* rawIplImage;
rawImg.copyTo(cloneRawImg);
rawIplImage = &IplImage(cloneRawImg);
应改为:
Mat rawImg,cloneRawImg;
IplImage* rawIplImage;
rawImg.copyTo(cloneRawImg);
IplImage rawIplImage2;
rawIplImage2 = IplImage(cloneRawImg);
rawIplImage = &rawIplImage2 ;
来源:CSDN
作者:lien0906
链接:https://blog.csdn.net/lien0906/article/details/40181447