Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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?