Error: identifier <uint8_t> undefined and is it possible to use at openCV
<p>Consider:</p>
<pre><code>int cn = img_V.channels();
Scalar_&lt;unit8_t&gt; bgrPixel;

for (int i = 0; i &lt; img_V.rows; i++)
{
    uint8_t* rowPtr = img_V.row(i);
    for (int j = 0; j &lt; img_V.cols; j++)
    {
        bgrPixel.val[0] = rowPtr[j*cn + 0]; // B
        bgrPixel.val[1] = rowPtr[j*cn + 1]; // G
        bgrPixel.val[2] = rowPtr[j*cn + 2]; // R

        // Do something with BGR values...
    }
}
</code></pre>
<p>I am using Visual Studio and OpenCV, but it can't identify the <code>uint8_t</code> showing error. How can I fix this?</p>