c++ - OpenCV: imread gives CV_8UC3, can't convert to CV_8UC4? -
need image try load , convert opencv:
here 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 cv_8uc3! image not made converting 4 channels or this? or need scaling factor (read sth this)?
thanks help, best regards!
cvtcolor( src,dst, cv_bgr2bgra );
Comments
Post a Comment