02 2021 档案
摘要:#include <opencv2/opencv.hpp> #include <iostream> #include <stdlib.h> #include <math.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/
阅读全文
摘要:#include <opencv2/opencv.hpp> #include<iostream> using namespace std; using namespace cv; void main() { //读取图片 Mat image = imread("1.png"); imshow("ro
阅读全文
摘要:#include <opencv2/opencv.hpp> #include <iostream> #include <stdlib.h> #include <math.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/
阅读全文
摘要:from tkinter import * from tkinter import messagebox root=Tk() btn01=Button(root)#把按钮放在窗口里面 btn01['text']='点我就送花' btn01.pack()#压缩一下 def songhua(e): #e
阅读全文
摘要:cv::Mat image_array =imread("path"); //读入目标图像 cv::imshow("1", image_array);//显示原始图像 image_array.convertTo(image_array, CV_32FC3);//原始图像转为32位浮点类型 cv::n
阅读全文
摘要: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
阅读全文