Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can try this:


float pts[rows*dim] = {
    0.270598,0.254439,0.471311,
    0.270598,0.254439,0.518814,
    0.270598,0.282268,0.518814,
    0.270598,0.282268,0.471311,
    0.396951,0.254439,0.471311,
    0.396951,0.282268,0.471311,
    0.396951,0.282268,0.518814,
    0.396951,0.254439,0.518814
};

Mat points(rows, 1, CV_32FC3, pts);

Also, may be this would be useful: Working with pixels.