Need help with an image I try to load and convert with OpenCV:
Here is my code:
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;
This gives me always CV_8UC3! Is the image not made for converting to 4 channels or something like this? Or do I need a scaling factor (read about sth like this)?
Thanks for help, best regards!
cvtColor( src,dst, CV_BGR2BGRA );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With