3. Use OPenCV to manipulate image data in the QT environment (reading, saving, size adjustment, color transformation, etc.)

1. Description

After the image is loaded, if you need to display it, you need to use the imshow function. Under the QT framework, you don't need to use this function. The operation of this article is to draw the read image data to a QLabel control.
Example of using the display function that comes with opencv:

cv::Mat src = cv::imread("D:/LearnQt/opencv/firstTest/images/test.jpg");
cv::namedWindow("输入窗口",WINDOW_FREERATIO);

Guess you like

Origin blog.csdn.net/FY_13781298928/article/details/131287756