Dlib GUI #2745
Replies: 1 comment 7 replies
-
It's great. I use it all the time. Works smoothly through X11 forwarding through ssh too. I've already made plenty of 2D and 3D scatter plots with dlib's GUI. It is super fast for that. All it is is a memory buffer that's like "ok, write to these pixels however you want". It isn't going to be faster than that, since your user code of any other API is still going to have to run and loop over all your points or whatever it is you are dealing with anyway. If you wanted to draw a bunch of 3D triangles and do shading and stuff like that then OpenGL would be faster obviously. But the math for a scatter plot is not meaningfully different from a memory copy. Even drawing a bunch of lines is real fast. Heatmaps are easy too. Like look at http://dlib.net/imaging.html#heatmap. Or go make http://dlib.net/3d_point_cloud_ex.cpp.html plot millions of points. Renders fine. Even on the other end of X11 forwarding, which would just break if you tried it with opengl. A lot of these things just boil down to making and image somehow. It's not the GUI libraries business how that happens. Then you put it on the screen with |
Beta Was this translation helpful? Give feedback.
-
Are there any plans in the future to work on the GUI stuff?
I typically use web GUIs but I'm starting to realise that a lot of the web tooling is designed to work best with node.js and/or large frameworks like React, Vue or Angular. Gone are the days where web libraries could be simply included in your HTML header and used JQuery at most. So I've started to look at desktop GUI libraries like GTK, imgui, QT and dlib.
So I was wondering what the state of dlib GUI was in?
I'm interested in scientific plotting, so line graphs, scatter graphs and heat maps for spectrograms. Those would need a PR and possibly use dlib's canvas API. But is the X11 backend or Windows backend suitable for plotting large amounts of data? Or would dlib require another set of PRs to support OpenGL, Vulcan or whatever for rendering large amounts of data?
At the moment, using another library would be more suitable. But I'm interested to know if someone had plans to pimp up dlib's GUI.
Beta Was this translation helpful? Give feedback.
All reactions