First time here? Check out the FAQ!
answered 2019-11-29 05:35:35 -0600
convertTo() does not change the channel count, only the depth (e.g. 8U -> 32F)
instead use:
cvtColor(src,dst,COLOR_BGR2BGRA);
to go from 3 to 4 channels.