Load texture from memory, but imgui display nothing #1636
Replies: 1 comment
-
There is no usage of stb_image in the code you posted and it wouldn't be useful for what you're trying to do if it was. If you have the data in a cv::Mat, it's already decoded raw pixels in memory. stb_image is for decoding formatted image files (like PNG or JPEG) from disk. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to read a picture and use opencv to do some preprocess, then display the result in imgui. I try use stb_image to convert cv::Mat to texture, like the example imgui wiki provides. But when I run it, the window plays nothing. Here is my code
Beta Was this translation helpful? Give feedback.
All reactions