I have a mat A of type CV_32F
and a mask M
with binary value 0 and 255. For example,
A = [0.1 0.2; 0.3 0.4]
M = [1 0 ; 0 0 ]
I want to get the result of A&B = [0.1, 0;0 0]
While bitwise operation does not work on float mat. And I tried to convert the mask to CV_32F
and then mask like the following, also not work.
M.convertTo(M, CV_32F);
A.copyTo(A, M);
So how to do it ?
CV_32F
? – Amando