- 博客(20)
- 收藏
- 关注
原创 图像滤波窗口demo
int* data = new int[imgL.rows * imgL.cols]; for (int y = 0; y < imgL.rows; y++) { for (int x = 0; x < imgL.cols; x++) { data[y * imgL.cols + x] = imgL.at<uchar>(y, x); } } Mat imgL1 = imgL.clone(); int wnd_size = 5; int radius =.
2022-05-30 09:13:41
214
原创 vrk可视化点云
#include <vtkSmartPointer.h>#include <vtkActor.h>#include <vtkPolyDataMapper.h>#include <vtkRenderWindow.h>#include <vtkRenderWindowInteractor.h>#include <vtkRenderer.h>#include <vtkPolyDataReader.h>#include
2022-04-29 17:11:33
303
原创 vtk 显示opencv图像
#include "vtkAutoInit.h" VTK_MODULE_INIT(vtkRenderingOpenGL2);VTK_MODULE_INIT(vtkInteractionStyle);#include <vtkPNGReader.h>//PNG读取类#include <vtkImageViewer.h>//显示2D图像类#include <vtkRenderWindowInteractor.h>//交互器类#include <opencv
2022-04-28 15:22:01
3311
原创 vtk bug笔记解决方法
1.error:no override found for ‘vtkRenderWindow’#include <vtkAutoInit.h>VTK_MODULE_INIT(vtkRenderingOpenGL2)VTK_MODULE_INIT(vtkInteractionStyle)
2022-04-23 09:41:05
237
原创 抠图 更换背景
#include<opencv2/opencv.hpp>#include<iostream>using namespace cv;using namespace std;int main(){ Mat img = imread("D:/picture/zheng.png"); Mat gray, binary; /*cvtColor(img, gray, COLOR_BGR2GRAY); threshold(gray, gray, 110, 255,THRESH_B
2022-03-28 15:40:50
148
原创 pcl 显示法向量
#include<pcl/visualization/cloud_viewer.h>#include<iostream>//标准C++库中的输入输出类相关头文件。#include<pcl/io/io.h>#include<pcl/io/pcd_io.h>//pcd 读写类相关的头文件。#include<pcl/io/ply_io.h>#include<pcl/point_types.h> //PCL中支持的点类型头文件。#.
2022-02-15 14:22:08
877
原创 海康拍照demo
#include "MvCameraControl.h"#include <iostream>#include <opencv2/opencv.hpp>using namespace cv;using namespace std;#define MAX_BUF_SIZE (3072*2048*3)Mat imgL;int timeL = 10000;void callBackL(int, void*);int nRet_L = -1;void* m_han
2022-01-14 09:10:03
689
原创 直方图绘制
#include <opencv2\opencv.hpp>#include <iostream>using namespace cv;using namespace std;int main(){ Mat img = imread("D:\\OpenCV4\\《OpenCV 4快速入门》数据集\\data\\apple.jpg"); if (img.empty()) { cout << "请确认图像文件名称是否正确" << endl;
2021-10-08 14:40:17
130
原创 照片的滤镜
素描#include <opencv2/opencv.hpp>#include <iostream>using namespace cv;using namespace std;int main(){ Mat src = imread("E:/picture/lena.png"); int width = src.cols; int heigh = src.rows; Mat gray0, gray1; cvtColor(src, gray0, COLOR_BG
2021-08-31 14:38:42
108
原创 选取ROI区域
#include <iostream>#include <opencv2/opencv.hpp>using namespace std;using namespace cv;bool draw;Mat src; Mat roi;Point cursor; Rect rect;void onMouse(int event, int x, int y, int flags, void* param){ Mat img = src.clone(); switch
2021-08-27 14:15:47
457
原创 更换背景抠图
#include <opencv2/opencv.hpp>#include <iostream>using namespace std;using namespace cv;int main(int argc, char** argv) { Mat src = imread("D:/picture/mask.png"); if (src.empty()) { printf("could not load image...\n"); return -1; } i
2021-08-26 09:46:57
107
转载 opencv鼠标操作
转载:https://blog.youkuaiyun.com/qq_52254197/article/details/115333959#include <iostream>#include<opencv2/opencv.hpp>using namespace cv;using namespace std;Mat* img = 0;void onMouse(int event, int x, int y, int flags, void* param){ Mat* im = re
2021-08-23 21:06:33
291
原创 opencv 滑条二值化
#include<iostream>#include<opencv2/opencv.hpp>#include<string>#include<fstream>#include<vector>using namespace cv;using namespace std;Mat img1, img2;int main(){ Mat img = imread("E:/picture/y1.bmp"); cvtColor(img,
2021-08-23 17:25:29
230
转载 opencv对大批量图片读取,进行操作,最后再保存
https://blog.youkuaiyun.com/weixin_44723106/article/details/103034846
2021-08-21 12:04:44
551
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人