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
opencv does not support uint32_t for Mat
what exactly is inside your
std::vector<uint32_t>
?please explain in more detail, how you obtain that data
I don't really follow what the first code does in its inner loop, its optimized code for Neon but should be compatible with ORB SLAM2 as that was the purpose of that project. Here is a description in the code + the function definition of the top level descriptor generation:
/// Compute ORB descriptions from keypoints. Set words to the number
/// of 32bit words the brief description should output, up to
/// 8 for a 256 bit descriptor. Descriptors are appended to the back of
///
descriptors
.I'm reading through this post that I found...
https://stackoverflow.com/questions/2...
Sorry I missed the template part,
This is an actual call in the demo code: