Matlab 高斯高通滤波器的计算公式
据我所知,生成高斯低通滤波器的公式是:Matlab 高斯高通滤波器的计算公式,matlab,image-processing,Matlab,Image Processing,据我所知,生成高斯低通滤波器的公式是: [x y] = meshgrid(round(-N/2):round(N/2), round(-N/2):round(N/2)); GaussianFilter = exp((-x.^2/(2*sigma^2)-y.^2/(2*sigma^2))); 在这种情况下,高通滤波器的公式应该是什么?我所写的答案基于此和注释 GaussianFilterHigh = 1 - exp((-x.^2/(2*sigma^2)-y.^2/(2*sigma^2)))
[x y] = meshgrid(round(-N/2):round(N/2), round(-N/2):round(N/2));
GaussianFilter = exp((-x.^2/(2*sigma^2)-y.^2/(2*sigma^2)));
在这种情况下,高通滤波器的公式应该是什么?我所写的答案基于此和注释
GaussianFilterHigh = 1 - exp((-x.^2/(2*sigma^2)-y.^2/(2*sigma^2)));
恒等式减去一个低通滤波器=一个高通滤波器:)你的意思是我们减去低通滤波器矩阵中的每个值一,那么它将变成高通滤波器:)@Aptos几乎。您只需执行
GaussianHPF=1-GaussianLPF
(为了清晰起见,我将GaussianLPF
重命名为GaussianLPF
)。