Matrix element-wise division: C = A/B when B != 0, 0 otherwise.

asked 2014-01-07 11:04:48 -0500

arthur.sw gravatar image

I want C = A/B when B != 0, 0 otherwise. My test showed that the / operator does exactly what I want (with CV_32S mat).

It would be nice if this behavior were documented. How is divide() different from the / operator?

edit retag flag offensive close merge delete