【C++】OpenCV4-线条、矩形、圆形、椭圆等图形的绘制与填充、RNG随机函数的使用
摘要:图形的绘制与填充: //图形的绘制与填充 Mat canvas = Mat::zeros(Size(512, 512), CV_8UC3); namedWindow("canvas", WINDOW_AUTOSIZE); //相关绘制API演示 //绘制直线 line(canvas, Point(1
阅读全文
posted @
2024-01-12 22:18
wshidaboss
阅读(120)
推荐(0) 编辑
【C++】OpenCV4-颜色空间的转换
摘要:#include <opencv2/opencv.hpp> #include <iostream> using namespace std; using namespace cv; int main() { Mat img = imread("C:/img/3.jpg"); Mat img32; i
阅读全文
posted @
2024-01-07 17:50
wshidaboss
阅读(29)
推荐(0) 编辑
【C++】OpenCV4-图像、视频的读取和保存
摘要:#include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main() { //图像的读取 Mat img = imread("C:/img/3.jpg", IMREA
阅读全文
posted @
2024-01-07 17:17
wshidaboss
阅读(298)
推荐(0) 编辑