MATLAB使用低通滤波器
时间: 2023-08-19 16:04:42 浏览: 99
在MATLAB中使用低通滤波器,可以选择使用理想低通滤波器、巴特沃斯低通滤波器或高斯低通滤波器。
使用理想低通滤波器的MATLAB代码如下:
```matlab
close all; clear all; clc;
I = imread('D:\resource_photo\3.png');
I = im2double(I);
M = 2*size(I,1); % 滤波器行数
N = 2*size(I,2); % 滤波器列数
u = -M/2:(M/2-1);
v = -N/2:(M/2-1);
[U, V = meshgrid(u, v);
D = sqrt(U.^2 + V.^2);
D0 = 60; % 截止频率
H = double(D<=D0); % 理想低通滤波器
J = fftshift(fft2(I,
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231044833.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![m](https://img-home.csdnimg.cn/images/20250102104920.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)