Laplacian算子图像提升
来源:互联网 发布:淘宝网店进销存 编辑:程序博客网 时间:2024/04/28 16:25
%Laplacian微分算子提升图像,中心系数为负原来算子为[0,1,0;1,-4,1;0,1,0];f(x,y)-[Laplacian算子]
function d=Laplacian_strength(x,n)
d=x;
operator=[0,-1,0;-1,5,-1;0,-1,0];
[width,height]=size(x);
for ii=1:width-(n-1)
for jj=1:height-(n-1)
tmp=x(ii:ii+n-1,jj:jj+n-1).*operator;
p=sum(sum(tmp));
d(ii+(n-1)/2,jj+(n-1)/2)=p;
end
function d=Laplacian_strength(x,n)
d=x;
operator=[0,-1,0;-1,5,-1;0,-1,0];
[width,height]=size(x);
for ii=1:width-(n-1)
for jj=1:height-(n-1)
tmp=x(ii:ii+n-1,jj:jj+n-1).*operator;
p=sum(sum(tmp));
d(ii+(n-1)/2,jj+(n-1)/2)=p;
end
end
%==================================================================================
%author:王同乐
%date:2016/10/30
img=imread('lena.png');
img=rgb2gray(img);
img=im2double(img);%输入图像类型为uint8,将其转换为double类型进行运算
%====================================Lalapcian提升
subplot(1,2,1);imshow(img);title('原图');
subplot(1,2,2);imshow(Laplacian_strength(img,3));title('laplacian提升后的图像');
效果图:
0 0
- Laplacian算子图像提升
- Laplacian算子
- OpenCV_基于Laplacian算子的图像边缘增强
- OpenCV_基于Laplacian算子的图像边缘增强
- laplacian算子的运用
- laplacian算子的推导
- Laplacian/拉普拉斯算子
- opencv Laplacian算子
- Opencv Laplacian算子
- 基于Laplacian算子的图像锐化及非锐化屏蔽(unsharp masking)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- 图像处理中各种边缘检测的微分算子简单比较(Sobel,Robert, Prewitt,Laplacian,Canny)
- Android 更新UI方法的深度解析
- Lock 2
- 禁用浏览器缓存
- 【Unity】学习Shader中常用的函数方法
- 大型网站架构——【负载均衡和LVS】
- Laplacian算子图像提升
- hive优化总结经验
- USB 3.0规范中译本 第3章USB 3.0体系结构概览
- 网络世界的法律——OSI
- 【HTML5学习研究】简单服务器推送(通过SSE实现即时聊天)
- ios开发之View属性hidden, opaque, alpha, opacity的区别
- 《大型网站技术架构》读书笔记四:瞬时响应之网站的高性能架构
- OpenCV Tutorial: 固定閾值(threshold)
- USB 3.0规范中译本 第4章超高速数据流模型