First time here? Check out the FAQ!
answered 2018-12-11 20:10:55 -0600
You can just simply use
Mat D=5*C;
I have tested in opencv with c++ in Ubuntu. Hope this help.