巴特沃斯核生成

2024-05-15 21:08:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在图像上应用butterworth过滤器以消除模糊。如何从过滤器系数(下面代码中的a和b)生成butterworth内核

def butterLow(cutoff, critical, order):
    normal_cutoff = float(cutoff) / critical
    b, a = signal.butter(order, normal_cutoff, btype='lowpass')
    return b, a

谢谢大家!


Tags: 代码图像过滤器signaldeforderfloat内核