How do I declare a vector in OpenCV?
<p>How do you write a vector in OpenCV? that contains 3 values like this <code>v = [p1,p2,p3]</code>? This is what I tried:</p>

<pre><code>int dim [1] = {3};
Mat v(1,dim,CV_32F, Scalar(p1,p2,p3));
</code></pre>

<p>But when I do debug in Qt, I see in the local and expression window that the vector <code>v</code> indeed has 1 column and 3 rows but has also 2 dim. I was wondering if this is due to the <code>Mat</code> type in the declaration.
With which type could I replace it to get just a simple vector of 3 values?</p>