hiboost_b.m

来自「Image enhancement in spatial domain, the」· M 代码 · 共 22 行

M
22
字号
%% High Boost Filtering of the image in the figure 3.40(a)
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 size of the matrix ---')
      filter(i,j) = element;
      end
end
image=imread('Fig0340(a)(dipxe_text).tif');
results=imfilter(image, i);
imtool(results)
h=fspecial('average',3)
I = imread('Fig0340(a)(dipxe_text).tif');
h = fspecial('unsharp');
I2 = imfilter(I,h);
imshow(I), title('Original Image')
figure, imshow(I2), title('Filtered Image')

⌨️ 快捷键说明

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