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

📄 spatial_fil.asv

📁 Image enhancement in spatial domain, the sources include histogram, laplacian, unsharp mask, and spa
💻 ASV
字号:
%% Program to perform spatial filtering of an image
close all;
clear all;

name = input('Enter the image name ---    ', 's')
size = input('Enter the size of the 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
image=imread('Fig0308(a)(fractured_spine).tif');
results=imfilter(image, i);
imtool(results)
h=fspecial('average',3)
I = imread('Fig0308(a)(fractured_spine).tif');
i= ones(3,3) / 9;
I2 = imfilter(I,i);
imshow(I), title('Original Image');
figure, imshow(I2), title('Spatial Filtered Image')

⌨️ 快捷键说明

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