.cols * kChannels;</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;  std::vector&lt;uint8_t&gt; imageBytes(imageDataNumBytes);</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; imageDataNumBytes; ++i) {</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    imageBytes[i] = imageMat.ptr&lt;uint8_t&gt;()[i];</div><div cla