Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2017-07-31 23:33:30 -0600

Nbb gravatar image

multiply vec with vec

How can I perform an element-wise multiplication of 2 vectors and return the result to a vec ? Do I need to typecast them into a Mat ?

cv::Vec3f A, B, C;
//fill up A and B

C = A*B;