MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / QImageToBGRACvMat

Method QImageToBGRACvMat

src/effects/Outline.cpp:105–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105cv::Mat Outline::QImageToBGRACvMat(std::shared_ptr<QImage>& qimage) {
106 cv::Mat cv_img(qimage->height(), qimage->width(), CV_8UC4, (uchar*)qimage->constBits(), qimage->bytesPerLine());
107 return cv_img;
108}
109
110std::shared_ptr<QImage> Outline::BGRACvMatToQImage(cv::Mat img) {
111 cv::Mat final_img;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected