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

Method GetImageCV

src/Frame.cpp:894–906  ·  view source on GitHub ↗

Get pointer to OpenCV image object

Source from the content-addressed store, hash-verified

892
893// Get pointer to OpenCV image object
894cv::Mat Frame::GetImageCV()
895{
896 // Check for blank image
897 if (!image)
898 // Fill with black
899 AddColor(width, height, color);
900
901 // if (imagecv.empty())
902 // Convert Qimage to Mat
903 imagecv = Qimage2mat(image);
904
905 return imagecv;
906}
907
908std::shared_ptr<QImage> Frame::Mat2Qimage(cv::Mat img){
909 cv::cvtColor(img, img, cv::COLOR_BGR2RGB);

Callers 8

detectObjectsClipMethod · 0.80
stabilizeClipMethod · 0.80
trackClipMethod · 0.80
GetFrameMethod · 0.80
CVTracker.cppFile · 0.80
Frame.cppFile · 0.80
displayClipFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected