Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I do boolean operation on mat, such as mat3 = mat1 & mat2?

Tags:

opencv

I would like to do boolean operation on mat structure. such as

"and/or/xor" ing two binary images

is it possible to do that ?

like image 469
prgbenz Avatar asked Jul 31 '13 03:07

prgbenz


1 Answers

just do it !

Mat a,b;
Mat c = a & b;
like image 156
berak Avatar answered Oct 24 '22 11:10

berak