title: divide two matrices in opencv
body: <p>I would like to perform a element-wise division of two opencv CV_32S matrices (A &amp; B).</p>
  <p>I want C = A/B when B is not 0, 0 otherwise.</p>
  <p>But I'm not sure to understand opencv documentation:</p>
  <p><a href="http://docs.opencv.org/modules/core/doc/operations_on_arrays.html#divide" rel="nofollow noreferrer">http://docs.opencv.org/modules/core/doc/operations_on_arrays.html#divide</a></p>
  <p>It says:</p>
  <blockquote>
  <p>When src2(I) is zero, dst(I) will also be zero. Different channels of multi-channel arrays are processed independently.</p>
  <blockquote>
  <p>Note Saturation is not applied when the output array has the depth CV_32S. You may even get result of an incorrect sign in the case of overflow.</p>
  </blockquote>
  </blockquote>
  <p>What does the saturate() function? Can I use divide(A,B,C) safely with CV_32S matrices? How is divide() different from the / operator?</p>
  <p>===== EDIT AFTER TEST =====</p>
  <p>My test showed that the / operator does exactly what I want: C = A/B when B != 0, 0 otherwise.</p>