Integrating VTK and OpenCV into a single Qt widget-based application
This project shows two widgets in a QT application:
- On left side, a VTK rendering, using QVTK, of the hello world example from the VTK's webpage
- On the right side, the morphology operation erode using OpenCV, with the OpenGL-based widget QTOpenCvViewerGl Widget created by @Myzhar
The image presented is a frame capture (actually extracted) from the VTK rendering. For that, a time is created in order to capture a frame each k milliseconds.
-
Initially, the project was created using QT Creator. However, I am not fan of that IDE/environment, however there is a
.pro
file -
Next the QT Designer was used it just to stick the QVTKWidget and the QTOpenCvViewerGl widget
-
Project was thinking to work using Visual Studio. Then a CMake file is created manually
-
Files
mainview.*
are related to the graphical interface -
Folders
src/
andinclude/
contains source codes and headers respectively -
A class called
CAppManager
controls the required variables -
Majority of code is using C++ 11
Tools Version CMake 3.10 Qt 5.10 VTK 8.01 Visual Studio 2017