[問題] OpenGL Display OpenCV Image
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
vs2010 C++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
OpenCV 2.4.2
OpenGL
問題(Question):
主要將OpenCV 讀入的image 或video 在OpenGL下呈現。
餵入的資料(Input):
參考這一個網站的code,但無法正確執行。
http://stackoverflow.com/questions/5316529/opengl-texture-inverted
預期的正確結果(Expected Output):
能正確的show圖
錯誤結果(Wrong Output):
http://ppt.cc/JUxQ
程式碼(Code):(請善用置底文網頁, 記得排版)
gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGB, image->width, image->height, GL_RGB,
GL_UNSIGNED_BYTE, image->imageData);
跑到這上面那行時,出現上圖錯誤訊息,求各位前輩解答。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.132.49.66
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1397625816.A.E44.html
推
04/18 16:44, , 1F
04/18 16:44, 1F
→
04/18 16:47, , 2F
04/18 16:47, 2F
→
04/18 16:48, , 3F
04/18 16:48, 3F
→
04/18 16:48, , 4F
04/18 16:48, 4F
→
04/18 16:51, , 5F
04/18 16:51, 5F
→
04/20 15:23, , 6F
04/20 15:23, 6F
推
04/21 20:31, , 7F
04/21 20:31, 7F
→
04/21 20:32, , 8F
04/21 20:32, 8F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章