Open AnhPC03 opened 3 years ago
Hi. I'm sorry, but I actually have no idea. I have never worked with openCV in c++ before.
Did you solve it?
OpenCV requires your image array to be in BGRA (instead of the RGBA format used here). Change the following line in the convertImage function:
image[getRotatedImageByteIndex(y, x, height)] = (hexFF << 24) | (b << 16) | (g << 8) | r;
to
image[getRotatedImageByteIndex(y, x, height)] = (hexFF << 24) | (r << 16) | (g << 8) | b;
Hello. How can i convert your uint32_t *image to openCV Mat in c++? I had converted but not successed Here is my code in c++