02 2021 档案

摘要:#include <opencv2/opencv.hpp> #include <iostream> #include <stdlib.h> #include <math.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/ 阅读全文
posted @ 2021-02-21 23:27 司砚章 阅读(133) 评论(0) 推荐(0) 编辑
摘要:#include <opencv2/opencv.hpp> #include<iostream> using namespace std; using namespace cv; void main() { //读取图片 Mat image = imread("1.png"); imshow("ro 阅读全文
posted @ 2021-02-20 10:26 司砚章 阅读(65) 评论(0) 推荐(0) 编辑
摘要:#include <opencv2/opencv.hpp> #include <iostream> #include <stdlib.h> #include <math.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/ 阅读全文
posted @ 2021-02-20 09:21 司砚章 阅读(76) 评论(0) 推荐(0) 编辑
摘要:from tkinter import * from tkinter import messagebox root=Tk() btn01=Button(root)#把按钮放在窗口里面 btn01['text']='点我就送花' btn01.pack()#压缩一下 def songhua(e): #e 阅读全文
posted @ 2021-02-07 14:45 司砚章 阅读(140) 评论(0) 推荐(0) 编辑
摘要:cv::Mat image_array =imread("path"); //读入目标图像 cv::imshow("1", image_array);//显示原始图像 image_array.convertTo(image_array, CV_32FC3);//原始图像转为32位浮点类型 cv::n 阅读全文
posted @ 2021-02-02 00:08 司砚章 阅读(299) 评论(0) 推荐(0) 编辑
摘要:opencv浮点数的运算: 读取的图像一般是8位的,RGB图像为CV_8UC3,元素的访问为:image.at<Vec3b>(i, j)[0],image.at<Vec3b>(i, j)[1],image.at<Vec3b>(i, j)[2] 转为灰度图像后是CV_8UC1,元素的访问为:image 阅读全文
posted @ 2021-02-01 15:39 司砚章 阅读(231) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示