上一页 1 ··· 152 153 154 155 156 157 158 159 160 ··· 176 下一页
  2019年5月17日
摘要: 一、读入图像使用函数cv2.imread(filepath,flags)读入一副图片filepath:要读入图片的完整路径flags:读入图片的标志 cv2.IMREAD_COLOR:默认参数,读入一副彩色图片,忽略alpha通道cv2.IMREAD_GRAYSCALE:读入灰度图片cv2.IMRE 阅读全文
posted @ 2019-05-17 08:21 一杯明月 阅读(2127) 评论(0) 推荐(0) 编辑
  2019年5月16日
摘要: Sobel算子:[-1 0 1 -2 0 2 -1 0 1] 用此算子与原图像做卷积,可以检测出垂直方向的边缘。算子作用在图像的第二列,结果是:200,200,200;作用在第三列,结果是: 200,200,200; 对当前列左右两侧的元素进行差分,由于边缘的值明显小于(或大于)周边像素,所以边缘的 阅读全文
posted @ 2019-05-16 22:31 一杯明月 阅读(36973) 评论(3) 推荐(1) 编辑
摘要: Create Kd-tree nearest neighbor searcher(创建kd-树最近邻搜索器)。 Description KDTreeSearcher model objects store the results of a nearest neighbor search that u 阅读全文
posted @ 2019-05-16 16:04 一杯明月 阅读(3186) 评论(0) 推荐(0) 编辑
  2019年5月14日
摘要: 将下标转换为线性索引 将下标转换为线性索引 将下标转换为线性索引 语法 linearInd = sub2ind(matrixSize, rowSub, colSub) 语法 linearInd = sub2ind(matrixSize, rowSub, colSub) linearInd = sub 阅读全文
posted @ 2019-05-14 15:01 一杯明月 阅读(5545) 评论(0) 推荐(0) 编辑
摘要: B = imresize(A,scale) B = imresize(A,scale) 返回图像 B,它是将 A 的长宽大小缩放 scale 倍之后的图像。输入图像 A 可以是灰度、RGB 或二值图像。如果 A 有两个以上维度,则 imresize 只调整前两个维度的大小。如果 scale 在 [0 阅读全文
posted @ 2019-05-14 12:18 一杯明月 阅读(5615) 评论(0) 推荐(0) 编辑
摘要: Idx = knnsearch(X,Y) finds the nearest neighbor in X for each query point in Y and returns the indices of the nearest neighbors in Idx, a column vecto 阅读全文
posted @ 2019-05-14 00:18 一杯明月 阅读(4046) 评论(0) 推荐(0) 编辑
  2019年5月13日
摘要: 1.显示茶壶点云 ptCloud = pcread('teapot.ply');figure(1)pcshow(ptCloud); title('Teapot'); 2.Create a transform object with 30 degree rotation along z -axis a 阅读全文
posted @ 2019-05-13 22:05 一杯明月 阅读(4744) 评论(0) 推荐(0) 编辑
摘要: 1. pcread: 输入文件名,返回pointCloud类(用于存储点云)。eg: pcloud = pcread(“filename.ply”) 2. pcshow: 输入pointCloud类,展示该点云图。eg: pcshow(pcloud) 3. pcshowpair: 输入两个point 阅读全文
posted @ 2019-05-13 22:01 一杯明月 阅读(5761) 评论(0) 推荐(0) 编辑
摘要: http://zhuanlan.zhihu.com/p/83078037 一.最基本两个形态学运算 膨胀与腐蚀 啥叫形态学操作 形态学操作其实就是改变物体的形状,比如腐蚀就是”变瘦”,膨胀就是”变胖”,看下图就明白了: (http://ex2tron.wang/opencv-python-erode 阅读全文
posted @ 2019-05-13 14:32 一杯明月 阅读(12101) 评论(0) 推荐(1) 编辑
  2019年5月10日
摘要: figure(721);hold on;x=1:1:5;%x轴上的数据,第一个值代表数据开始,第二个值代表间隔,第三个值代表终止 a=[203.024,113.857,256.259,244.888,293.376]; %a数据y值 b=[334.4,143.2,297.4,487.2,596.2] 阅读全文
posted @ 2019-05-10 19:17 一杯明月 阅读(889) 评论(0) 推荐(0) 编辑
上一页 1 ··· 152 153 154 155 156 157 158 159 160 ··· 176 下一页