As a follow-up to the previous post, I’d like to present some code which I think might be helpful for other Qt / OpenCV projects as well.
I wrote a C++ header file to facilitate the co-operation of those two libraries. This file enables the conversion / casting of OpenCV and Qt types e.g.:
cv::Mat cvimg = toCv(qimg);
The source code is available at GitHub.
The following conversions are supported: