Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi! You can do it with Vec2f:


Vec2f pair = Vec2f(firstFloat, secondFloat);

// dst is a CV_32FC Mat
dst.push_back(pair);

For access use:

dst.at<Vec2f>(rowId)[0]
Also, check this answer "Working with pixels".