边缘
来源:互联网 发布:淘宝托管公司被骗18万 编辑:程序博客网 时间:2024/05/17 04:24
%显示原图
>> figure,imshow(lena);
>> title('Original image');
>>
%高斯模糊图片
>> h=fspecial('gaussian',[11 11],4);
>> figure,surf(h);
>> lenasmooth=imfilter(lena,h);
>> figure,imshow(lenasmooth);
>> title('smoothed lena');
%左右移动图片,再相减
>> lenaL=lena;
>> lenaL=lenasmooth;
>> lenaL(:,[1:(end-1)])=lenaL(:,[2:end]);
>> lenaR=lenasmooth;
>> lenaR(:,[2:(end)])=lenaR(:,[1:(end-1)]);
>> lenaDiff=double(lenaR)-double(lenaL);
>> figure,imshow(lenaDiff,[]),title('Diff');
%canny与log边缘
>> cannyEdges=edge(lena,'canny');
>> figure,imshow(cannyEdges),title('canny');
>> logEdges=edge(lena,'log');
>> figure,imshow(logEdges),title('logEdges');
>> figure,imshow(lena);
>> title('Original image');
>>
%高斯模糊图片
>> h=fspecial('gaussian',[11 11],4);
>> figure,surf(h);
>> lenasmooth=imfilter(lena,h);
>> figure,imshow(lenasmooth);
>> title('smoothed lena');
%左右移动图片,再相减
>> lenaL=lena;
>> lenaL=lenasmooth;
>> lenaL(:,[1:(end-1)])=lenaL(:,[2:end]);
>> lenaR=lenasmooth;
>> lenaR(:,[2:(end)])=lenaR(:,[1:(end-1)]);
>> lenaDiff=double(lenaR)-double(lenaL);
>> figure,imshow(lenaDiff,[]),title('Diff');
%canny与log边缘
>> cannyEdges=edge(lena,'canny');
>> figure,imshow(cannyEdges),title('canny');
>> logEdges=edge(lena,'log');
>> figure,imshow(logEdges),title('logEdges');
阅读全文
0 0
- 边缘
- 边缘
- 边缘
- 边缘的边缘程序员
- 边缘跟踪边缘检测
- 沙尘暴边缘
- 极限边缘.
- 边缘民谣
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 极限边缘.
- 实现第三方的yum仓库
- 笨办法学 Python · 续 练习 13:单链表
- 私有IP地址
- Deep Learning for Content-Based Image Retrival:A Comprehensive Study 论文笔记
- Java线程的挂起、恢复和终止
- 边缘
- 进程间通信 —— 管道(Interprocess Communications —— Pipes)
- 如何调整学习内容
- java架构之高并发,分布式,集群,高性能,中间件合集高级学习
- 习题 4.11 输入4个整数,要求按由小到大的顺序输出。
- 学习C++ -> 类(Classes)的定义与实现
- 池化方法总结
- POJ2104 K-th Number
- 二分法模板binary_search