Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can anyone explain the dtype parameter of OpenCV's c++ multiply

I have 2 matrices with contents as below

a= 

1 2 3 
4 5 6 
7 8 9 

b=

1 2 3 
4 5 6 
7 8 9

when I multiply with dtype parameter as below

Mat a = Mat(3 3 CV_8U data);
Mat b = Mat(3 3 CV_8U data);

multiply(a b dest 1.0 2);

.... I get this as result I was hoping someone could explain this to me as a noob to the multiply function but not matrix multiplication

1 0 4 
16 0 25 
49 0 64