Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to copy std::vector<uint32_t> to pre-formatted Mat!?

Hi Everyone,

I'm working on combining two different pieces of code for a ORB Slam project and am trying to figure out how to re-format the 'descriptors'.

The FROM data is this,

std::vector<uint32_t> descriptors;

(I'm then adding to this)

The TO format is this,

_descriptors.create(descriptors.size(), 32, CV_8U);

How can I copy this for best performance?

Cheers Fred