Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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?