Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cv::Mat Widget::qImageToMat(QImage img, int format)
- {
- return cv::Mat(img.height(), img.width(), format, img.bits(), img.bytesPerLine()).clone();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement