A followup to
https://groups.google.com/forum/#!topic/native-client-discuss/zBJ_iFQJrzE:
Passing my image data from JS to my NaCl module this way worked great, so thanks again. Now a new issue:
I'd like to convert this buffer array to an OpenCV Mat type.
Currently the image data looks like this:
pp::VarArrayBuffer array_buffer(dictionary.Get("data"));
In the example, that's cast to uint32_t
uint32_t* pixels = static_cast<uint32_t*>(array_buffer.Map());
Now I need to figure out a way to read that into OpenCV's Mat type for processing. Any suggestions?