Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Simple C++ lib for displaying gray-scale 2D luminance as 3D surface

Is there a library or project that will display an OpenCV gray-scale Mat as a 3D surface? IOW, translate pixel intensity into elevation.

Example here: Look midway down the page for a surface-mapped Lena: https://stackoverflow.com/questions/31805560/how-to-create-surface-plot-from-greyscale-image-with-matplotlib

The solution on that page uses Python. I'd like to stay with C++, and avoid loading in large code dependanciies like OpenGL, if possible. Wishful thinking, perhaps. :-)

Simple C++ lib for displaying gray-scale 2D luminance as 3D surface

Is there a library or project that will display an OpenCV gray-scale Mat as a 3D surface? IOW, translate pixel intensity into elevation.

Example here: Look midway down the page for a surface-mapped Lena: https://stackoverflow.com/questions/31805560/how-to-create-surface-plot-from-greyscale-image-with-matplotlib

The solution on that page uses Python. I'd like to stay with C++, and avoid loading in large code dependanciies dependencies like OpenGL, if possible. Wishful thinking, perhaps. :-)