Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Need to multiply two Mat elementwise

I have two Mat of same size. A of type CV_8UC1 B of type CV_64F

I am trying to multiply A with B elementwise such that output should be of CV_8UC1 obtained by doing either a round of or simple casting of values to CV_8UC1.

I am not sure if the result will be of desired type from A.mul(B)

Need to multiply two Mat elementwise

I have two Mat of same size. A of type CV_8UC1 and B of type CV_64F

I am trying to multiply A with B elementwise such that output should be of CV_8UC1 obtained by doing either a round of or simple casting of values to CV_8UC1.

I am not sure if the result will be of desired type from A.mul(B)