title: OpenCv use exp with Mat
body: <p>I want to perform a Matrix calculation in OpenCV according to this formula:</p>
  
  <pre><code>newMat = 1 / ( 1 + exp( scalar * ( otherScalar - Matrix ) ) )
  </code></pre>
  
  <p>Is there an easy way to do this in OpenCV or do I have to calculate this in a for loop?
  The main problem for me is the exp( Matrix ).</p>
  
  <p>Regards</p>