How can we convert directly cv::Mat to QPixmap without going through filename loading?
I have made some research about it but no hints!
As a first step, what I have tried is that I save the image, and then load it. But it's not what I want to have.
QPixmap::loadFromData(...)
to load the fieldcv::Mat::data
directly into theQPixmap
. I never tried to do such a thing though. – EastsoutheastQPixmap::fromImage()
. – Eastsoutheast