Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
OpenCV Matrix with OpenGLTexture setData
Sandip last edited by
I have been trying to pass the OpenCV Matrix (converted BGR to RGB) data to OpenGLTexture(ES 2.0) setData but unable to display the texture.
Here is code for same
texture = new QOpenGLTexture(QOpenGLTexture::Target2D);
texture->setFormat(QOpenGLTexture::RGBA8_UNorm); (Also tried RGBAFormat for OpenGL ES 2.0)
I think, some issue with internal Texture with set format or the pixel format and type. So anyone tell me the correct Pixel Format and Type for OpenCV matrix?