Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用算术平均滤波器通过filter2命令去除灰度图像的高斯噪声。
filter2
首先定义一个低通掩模,例如
N = 5; mask = ones(N)/N^2;
然后过滤你的图像,比如说X,使用
X
Y = filter2(mask,X);
请注意,必须对掩码进行归一化,以便过滤后的图像具有与原始图像相同的值范围。此外,全1 掩码是一个非常简单的示例;在实践中有更好的选择。