是否有Python等同于MATLAB的conv2函数? [英] Is there a Python equivalent of MATLAB's conv2 function?

查看:216
本文介绍了是否有Python等同于MATLAB的conv2函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python或其任何模块是否具有等同于MATLAB的 conv2 功能?更具体地说,我对与MATLAB中的conv2(A, B, 'same')相同的计算感兴趣的东西.

Does Python or any of its modules have an equivalent of MATLAB's conv2 function? More specifically, I'm interested in something that does the same computation as conv2(A, B, 'same') in MATLAB.

推荐答案

类似 scipy.signal.convolve2d 是您要寻找的东西.

Looks like scipy.signal.convolve2d is what you're looking for.

这篇关于是否有Python等同于MATLAB的conv2函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆