⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 laplacian_a.m

📁 Image enhancement in spatial domain, the sources include histogram, laplacian, unsharp mask, and spa
💻 M
字号:
%% Program to implement the Laplacian enhancement technique

close all;
clear all;


name = input('Enter the image name ---    ', 's')
size = input('Enter the size of filter ---  ')
filter = zeros(size,size);
for i=1:size
      for j=1:size
      element = input('Enter the elements of the matrix ---')
      filter (i,j) = element;
      end
end
image1=imread('house.bmp');
results=imfilter(image1, i);
imtool(results)
h=fspecial('average',3)
w=fspecial('laplacian',0)
g1=imfilter(image1,w,'replicate');
imshow(g1,[])
image2=im2double(image1);
g2=imfilter(image2,w,'replicate');
imshow(g2,[])
g=image2-g2;
imshow(g)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -