Ask Your Question

Revision history [back]

Embedding OpenCV Viz3d and Qt

I'd like to have an OpenCv Viz3d window in my Qt application. I'm aware that there are other similar questions, but those are in regards to OpenCV's 2d imaging capabilities.

So far, my approach has been to create a class that inherits from QWidget and cv::viz::Viz3d. However, I can't figure out how to override cv::viz::Viz3d's paint event to display inside of the GUI rather than its own window.

If there's a way to retrieve a cv::Mat from cv::viz::Viz3d, that could potentially work as well; however, it doesn't seeem like I can get a cv::Mat from Viz3d.