需要有关我尝试使用 OpenCV 加载和转换的图像的帮助:
这是我的代码:
templ = imread("Template.bmp",-1);
cout<<"templ before convert: "<<type2str(templ.type())<<endl;
templ.convertTo(templ,CV_8UC4);
cout<<"templ after convert: "<<type2str(templ.type())<<endl;
这总是给我 CV_8UC3!该图像不是为转换为 4 通道或类似的东西而制作的吗?或者我需要一个比例因子(阅读类似这样的内容)?
感谢帮助,
此致!
cvtColor( src,dst, CV_BGR2BGRA );
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)