title: how to normalize rows of an opencv Mat without a loop?
body: <p>I did it in the following way</p>
  
  <pre><code>Mat temp, rp;    
  for (int i = 0; i &lt;= descriptors1.rows - 1; i++)
  {
      normalize(descriptors1.row(i), temp);
      rp = normd1.rowRange(i, i+1);
      temp.copyTo(rp);
  }
  </code></pre>
  
  <p>The descriptors1 above is a Mat.</p>
  
  <p>But using a loop is time-consuming. Is there any nicer ways to do this?</p>
  
  <p>Regards.</p>