Issue Printing out Pixel Values after casting to int openCV
<p>I'm haiving an issue where I can't seem to print out pixel values for an image. The image displays correctly, but instead of actually giving me three 255 values, I get </p>

<pre><code>-2147483648
-2147483648
-2147483648
</code></pre>

<p>what gives? I don't know what I'm doing wrong?</p>

<pre><code>int main(int argc, char** argv)
{
     Mat baselineColor(1000,900,CV_8UC3,Scalar(255,255,255));
     //cvtColor(baselineColor,baselineColor,COLOR_BGR2HSV);
     cout &lt;&lt; static_cast&lt;int&gt;(baselineColor.at&lt;Vec3d&gt;(10,10)[0]) &lt;&lt; endl;
     cout &lt;&lt; static_cast&lt;int&gt;(baselineColor.at&lt;Vec3d&gt;(10,10)[1]) &lt;&lt; endl;
     cout &lt;&lt; static_cast&lt;int&gt;(baselineColor.at&lt;Vec3d&gt;(10,10)[2]) &lt;&lt; endl;
     namedWindow("Projector",WINDOW_AUTOSIZE);
     imshow("Projector",baselineColor);
     waitKey(0);
     return 0;
}
</code></pre>