pseudo_matched_filter.m
来自「image enhancement matlab code ,can impro」· M 代码 · 共 22 行
M
22 行
%------------------------------------------------------------------------
%pseudo_matched_filter
%Implements root filtering technique to increase SNR of an image
%usage:
%y = pseudo_matched_filter(x,alpha)
%y - [OUT] enhanced image
%x - [IN] input image
%alpha - [IN] exponent to which the FFT mag is raised. having larger alpha
% will increase smoothness, but will also introduce artefacts.
% optimal - 0.5 to 1
%Contact:
% ssc5@eng.buffalo.edu
% www.eng.buffalo.edu/~ssc5
%------------------------------------------------------------------------
x=Imread('108_2.tif')
function y = pseudo_matched_filter(x,alpha)
[h,w] = size(x);
x = double(x);
f = fft2(x);
f = (abs(f).^alpha).*f; %this is all root filtering is about
y = real(ifft2(f));
%end function pseudo_matched_filter
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?